Files
kubevela/vela-templates/definitions/usage-examples/application-with-configmap.yaml
SomefiveandYin Da 2aa31a9f2b [Vela CLI Tool] Add vela def (#1949)
* add vela edit

* vela def group commands

* 1. change scheme of definition cue
2. add vela def tests
3. reformat

* fix render template bugs

* add definition examples (migrated from serverless iac)

* retrigger github ci

Co-authored-by: Yin Da <yinda@B-2943Q05P-1738.local>
2021-08-03 18:00:49 +08:00

36 lines
810 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: application-with-configmap
spec:
components:
- name: busybox-runner
type: worker
properties:
image: busybox
cmd:
- sleep
- '1000'
traits:
- type: annotations
properties:
annotation-a: annotation-A
- type: configmap
properties:
volumes:
- name: read-only-configmap
mountPath: /read-only-configmap
readOnly: true
data:
dataA: a
dataB: b
- name: default-configmap
mountPath: /default-configmap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: default-configmap
data:
data1: "1"
data2: "2"