Files
kubevela/hack/load-test/app-templates/sae.yaml
Somefive 1fcb6395db Fix: rename pressure-test to load-test (#4481)
* Fix: rename pressure-test to load-test

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

* Chore: rename in texts

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
2022-07-27 11:48:52 +08:00

48 lines
1.3 KiB
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: sae-load-test-app-{{ .Env.APP_ID }}
spec:
components:
- name: example-component-{{ .Env.APP_ID }}
type: cloneset-service
properties:
image: crccheck/hello-world
port: 8000
traits:
- type: tolerate-hollow-node
- type: sidecar
properties:
name: example-sidecar
image: busybox
cmd:
- sleep
- '1000000'
- type: env
properties:
env:
app_id: "{{ .Env.APP_ID }}"
- type: scaler
properties:
replicas: 3
- type: annotations
properties:
load-test-description: A simple but complete app.
load-test-id: "{{ .Env.APP_ID }}"
- type: labels
properties:
load-test: sae
- type: ingress
properties:
domain: testsvc-{{ .Env.APP_ID }}.example.com
http:
"/": 8000
- type: configmap
properties:
volumes:
- name: example-data-{{ .Env.APP_ID }}
mountPath: /example-data
readOnly: true
data:
key1: value1
key2: value2