-
Notifications
You must be signed in to change notification settings - Fork 27
/
sample.yaml
72 lines (70 loc) · 1.75 KB
/
sample.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: zalando.org/v1
kind: StackSet
metadata:
name: e2e-deploy-sample
labels:
application: "e2e-deploy-sample"
annotations:
"stackset-controller.zalando.org/controller": "{{{CONTROLLER_ID}}}"
spec:
ingress:
hosts:
- "e2e-deploy-sample.{{{CLUSTER_DOMAIN}}}"
backendPort: 80
stackLifecycle:
scaledownTTLSeconds: 300
limit: 3
stackTemplate:
spec:
version: "{{{CDP_BUILD_VERSION}}}"
replicas: 2
configurationResources:
- configMapRef:
name: e2e-deploy-sample-{{{CDP_BUILD_VERSION}}}-config
autoscaler:
minReplicas: 2
maxReplicas: 2
metrics:
- type: CPU
averageUtilization: 50
- type: Ingress
average: 20000m
podTemplate:
metadata:
labels:
application: "e2e-deploy-sample"
spec:
containers:
- name: skipper
image: ghcr.io/zalando/skipper:v0.15.33
args:
- skipper
- -inline-routes
- '* -> inlineContent("OK") -> <shunt>'
- -address=:80
ports:
- containerPort: 80
resources:
requests:
cpu: 1m
memory: 100Mi
limits:
cpu: 1m
memory: 100Mi
volumeMounts:
- name: my-config
mountPath: /etc/my-config
readOnly: true
volumes:
- name: my-config
configMap:
name: e2e-deploy-sample-{{{CDP_BUILD_VERSION}}}-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: e2e-deploy-sample-{{{CDP_BUILD_VERSION}}}-config
labels:
application: "e2e-deploy-sample"
data:
something_is: configured