Files
kubevela/examples/testapp/vela.yaml

42 lines
874 B
YAML

name: testapp
services:
express-server:
# this image will be used in both build and deploy steps
image: oamdev/testapp:v1
build:
# Here more runtime specific build templates will be supported, like NodeJS, Go, Python, Ruby.
docker:
file: Dockerfile
context: .
# Uncomment the following to push to local kind cluster
# push:
# local: kind
# type: webservice (default) | worker | task
cmd: ["node", "server.js"]
port: 8080
# scaler:
# replica: 1
# route:
# domain: example.com
# rules:
# - path: /testapp
# rewriteTarget: /
# metrics:
# format: "prometheus"
# port: 8080
# path: "/metrics"
# scheme: "http"
# enabled: true
# pi:
# image: perl
# cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]