github.com/oam-dev/kubevela@v1.9.11/docs/examples/blog-extension/mydeploy.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: ComponentDefinition 3 metadata: 4 name: mydeploy 5 spec: 6 workload: 7 definition: 8 apiVersion: apps/v1 9 kind: Deployment 10 schematic: 11 cue: 12 template: |- 13 parameter: { 14 name: string 15 image: string 16 } 17 output: { 18 apiVersion: "apps/v1" 19 kind: "Deployment" 20 spec: { 21 selector: matchLabels: { 22 "app.oam.dev/component": parameter.name 23 } 24 template: { 25 metadata: labels: { 26 "app.oam.dev/component": parameter.name 27 } 28 spec: { 29 containers: [{ 30 name: parameter.name 31 image: parameter.image 32 }] 33 } 34 } 35 } 36 }