mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-20 08:13:23 +00:00
* Feat: enhance env trait Signed-off-by: Somefive <yd219913@alibaba-inc.com> * Fix: enhance container image trait Signed-off-by: Somefive <yd219913@alibaba-inc.com> * Feat: add command trait Signed-off-by: Somefive <yd219913@alibaba-inc.com> * Fix: add test Signed-off-by: Somefive <yd219913@alibaba-inc.com>
27 lines
793 B
YAML
27 lines
793 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: busybox
|
|
spec:
|
|
components:
|
|
- name: busybox
|
|
type: webservice
|
|
properties:
|
|
image: busybox
|
|
cmd: ["sleep", "86400"]
|
|
traits:
|
|
- type: sidecar
|
|
properties:
|
|
name: sidecar-nginx
|
|
image: nginx
|
|
- type: container-image
|
|
properties:
|
|
# you can use container-image to control multiple containers by filling `containers`
|
|
# NOTE: in containers, you must set the container name for each container
|
|
containers:
|
|
- containerName: busybox
|
|
image: busybox-1.34.0
|
|
imagePullPolicy: IfNotPresent
|
|
- containerName: sidecar-nginx
|
|
image: nginx-1.20
|