mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-23 22:46:53 +00:00
* add advanced trait tutorial * add more intersiting trait * init container and patch * add more traits * node affinity * addressing comment
27 lines
657 B
YAML
27 lines
657 B
YAML
apiVersion: core.oam.dev/v1alpha2
|
|
kind: Application
|
|
metadata:
|
|
name: testapp
|
|
spec:
|
|
components:
|
|
- name: express-server
|
|
type: webservice
|
|
settings:
|
|
cmd:
|
|
- node
|
|
- server.js
|
|
image: oamdev/testapp:v1
|
|
port: 8080
|
|
traits:
|
|
- name: "init-container"
|
|
properties:
|
|
name: "install-container"
|
|
image: "busybox"
|
|
command:
|
|
- wget
|
|
- "-O"
|
|
- "/work-dir/index.html"
|
|
- http://info.cern.ch
|
|
mountName: "workdir"
|
|
appMountPath: "/usr/share/nginx/html"
|
|
initMountPath: "/work-dir" |