oam-dev / spec

Open Application Model (OAM).
https://oam.dev
Other
3.04k stars 246 forks source link

A CUE based appfile #389

Closed resouer closed 3 years ago

resouer commented 4 years ago

Recently, we are working on a CUE based appfile which is a Docker Compose style UI file for OAM objects.

It's much simpler than k8s yaml and highly extensible by CUE schema.

name: myapp
components:
  frontend:
    deployment:
      image: inanimate/echo-server
      env:
        PORT: 8080
    traits:
      autoscaling:
        max: 10
        min: 1
      rollout:
        strategy: canary
        step: 5
      expose:
        service:
          type: LoadBalancer
        ports:
          http:
            service_port: 80
            container_port: 8080
    scopes:
      - public-scope
appScopes:
  public-scope:
    networkPolicy: public
  private-scope:
    networkPolicy: private

Will call for a PoC/demo when it's ready.

kminder commented 3 years ago

See comment on issue 306. https://github.com/oam-dev/spec/issues/306#issuecomment-704472268

resouer commented 3 years ago

Close in favor of aggregate all discussion and design in #306