mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-22 02:26:56 +00:00
* 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>
48 lines
1.3 KiB
YAML
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 |