github.com/oam-dev/kubevela@v1.9.11/hack/load-test/app-templates/community.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: community-load-test-app-{{ .Env.APP_ID }} 5 spec: 6 components: 7 - name: example-component-first-{{ .Env.APP_ID }}-1 8 type: webservice 9 properties: 10 image: crccheck/hello-world 11 port: 8000 12 traits: 13 - type: tolerate-hollow-node 14 - type: sidecar 15 properties: 16 name: example-sidecar 17 image: busybox 18 cmd: 19 - sleep 20 - '1000000' 21 - type: scaler 22 properties: 23 replicas: 3 24 - type: ingress 25 properties: 26 domain: testsvc-{{ .Env.APP_ID }}.example.com 27 http: 28 "/": 8000 29 - name: example-component-second-{{ .Env.APP_ID }} 30 type: worker 31 properties: 32 image: crccheck/hello-world 33 traits: 34 - type: tolerate-hollow-node 35 - type: scaler 36 properties: 37 replicas: 3 38 - type: configmap 39 properties: 40 volumes: 41 - name: example-data-{{ .Env.APP_ID }} 42 mountPath: /example-data 43 readOnly: true 44 data: 45 key1: value1 46 key2: value2