github.com/oam-dev/kubevela@v1.9.11/docs/examples/testapp/vela.yaml (about)

     1  name: testapp
     2  
     3  services:
     4    express-server:
     5      # this image will be used in both build and deploy steps
     6      image: oamdev/testapp:v1
     7  
     8      build:
     9        # Here more runtime specific build templates will be supported, like NodeJS, Go, Python, Ruby.
    10        docker:
    11          file: Dockerfile
    12          context: .
    13  
    14        # Uncomment the following to push to local kind cluster
    15        # push:
    16        #   local: kind
    17  
    18      # type: webservice (default) | worker | task
    19  
    20      cmd: ["node", "server.js"]
    21      port: 8080
    22  
    23      # scaler:
    24      #   replicas: 1
    25  
    26      # route:
    27      #   domain: example.com
    28      #   rules:
    29      #     - path: /testapp
    30      #       rewriteTarget: /
    31  
    32      # metrics:
    33      #   format: "prometheus"
    34      #   port: 8080
    35      #   path: "/metrics"
    36      #   scheme:  "http"
    37      #   enabled: true
    38  
    39      # autoscale:
    40      #   min: 1
    41      #   max: 4
    42      #   cron:
    43      #     startAt:  "14:00"
    44      #     duration: "2h"
    45      #     days:     "Monday, Thursday"
    46      #     replicas: 2
    47      #     timezone: "America/Los_Angeles"
    48  
    49    # pi:
    50    #   type: task
    51    #   image: perl 
    52    #   cmd: ["perl",  "-Mbignum=bpi", "-wle", "print bpi(2000)"]