github.com/oam-dev/kubevela@v1.9.11/hack/load-test/app-templates/sae.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: sae-load-test-app-{{ .Env.APP_ID }} 5 spec: 6 components: 7 - name: example-component-{{ .Env.APP_ID }} 8 type: cloneset-service 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: env 22 properties: 23 env: 24 app_id: "{{ .Env.APP_ID }}" 25 - type: scaler 26 properties: 27 replicas: 3 28 - type: annotations 29 properties: 30 load-test-description: A simple but complete app. 31 load-test-id: "{{ .Env.APP_ID }}" 32 - type: labels 33 properties: 34 load-test: sae 35 - type: ingress 36 properties: 37 domain: testsvc-{{ .Env.APP_ID }}.example.com 38 http: 39 "/": 8000 40 - type: configmap 41 properties: 42 volumes: 43 - name: example-data-{{ .Env.APP_ID }} 44 mountPath: /example-data 45 readOnly: true 46 data: 47 key1: value1 48 key2: value2