Files
kubevela/hack/load-test/app-templates/multicluster.yaml
SomefiveandGitHub b4ef7e915f Feat: add load testing app template (#5526)
* Feat: add load testing apptemplate

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

* Feat: update region template

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

* Feat: use configmap instead of secret and add cleanup script

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

* enhance readme

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

---------

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
2023-03-16 18:57:04 +08:00

42 lines
951 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: app-ID
namespace: load-test-SHARD
labels:
controller.core.oam.dev/scheduled-shard-id: shard-SHARD
spec:
components:
- name: app-ID-vVERSION-c1
type: webservice
properties:
image: nginx
traits:
- type: scaler
properties:
replicas: 0
- name: secret-ID
type: k8s-objects
properties:
objects:
- apiVersion: v1
kind: ConfigMap
metadata:
name: secret-ID
stringData:
id: "ID"
shard: "SHARD"
- apiVersion: v1
kind: ConfigMap
metadata:
name: cm-ID
data:
id: "ID"
shard: "SHARD"
version: "VERSION"
policies:
- type: topology
name: topology
properties:
clusters: ["cluster-CLUSTER"]