mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-01 00:07:19 +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>
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
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: command
|
|
properties:
|
|
# by default, the following command will replace the command declared in the main container -> busybox
|
|
command: ["sleep", "8640000"]
|
|
|
|
# if you want to patch the sidecar container, specify the container name explicitly
|
|
# containerName: sidecar-nginx
|
|
|
|
# if you want to replace the existing args in the container, use the `args` parameter
|
|
# args: ["86400"]
|
|
|
|
# if you want to append args to the existing args, use the `addArgs` parameter
|
|
# addArgs: ["86400"]
|
|
|
|
# if you want to delete args to the existing args, use the `delArgs` parameter
|
|
# delArgs: ["86400"]
|