mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-18 20:17:04 +00:00
* 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>
90 lines
2.1 KiB
YAML
90 lines
2.1 KiB
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: app-ID-vVERSION-c2
|
|
type: webservice
|
|
properties:
|
|
image: nginx
|
|
traits:
|
|
- type: scaler
|
|
properties:
|
|
replicas: 0
|
|
- name: app-ID-vVERSION-c3
|
|
type: worker
|
|
properties:
|
|
image: nginx
|
|
traits:
|
|
- type: scaler
|
|
properties:
|
|
replicas: 0
|
|
- name: secret-ID
|
|
type: k8s-objects
|
|
properties:
|
|
objects:
|
|
- apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: secret-ID-s1
|
|
stringData:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
- apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: secret-ID-s2
|
|
stringData:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
- apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: secret-ID-s3
|
|
stringData:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
- apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cm-ID-c1
|
|
data:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
version: "VERSION"
|
|
- apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cm-ID-c2
|
|
data:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
version: "VERSION"
|
|
- apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cm-ID-c3
|
|
data:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
version: "VERSION"
|
|
- apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cm-ID-c4
|
|
data:
|
|
id: "ID"
|
|
shard: "SHARD"
|
|
version: "VERSION" |