github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-with-configmap.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: application-with-configmap 5 spec: 6 components: 7 - name: busybox-runner 8 type: worker 9 properties: 10 image: busybox 11 cmd: 12 - sleep 13 - '1000' 14 traits: 15 - type: annotations 16 properties: 17 annotation-a: annotation-A 18 - type: configmap 19 properties: 20 volumes: 21 - name: read-only-configmap 22 mountPath: /read-only-configmap 23 readOnly: true 24 data: 25 dataA: a 26 dataB: b 27 - name: default-configmap 28 mountPath: /default-configmap 29 --- 30 apiVersion: v1 31 kind: ConfigMap 32 metadata: 33 name: default-configmap 34 data: 35 data1: "1" 36 data2: "2"