-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample-sandbox.yaml
58 lines (56 loc) · 1.4 KB
/
example-sandbox.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
name: "@{name}"
spec:
cluster: "@{cluster}"
resources:
- name: customObjects
plugin: k8s-apply
params:
data: |
apiVersion: v1
kind: ConfigMap
metadata:
name: config-@{name}
namespace: @{namespace}
data:
driver.properties: |
timeout=1s
maxRate=10
---
apiVersion: v1
kind: Secret
metadata:
name: secret-@{name}
namespace: @{namespace}
data:
token: dGVzdA==
forks:
- forkOf:
namespace: "@{namespace}"
name: echo-env
kind: Deployment
customizations:
patch:
type: strategic
value: |
spec:
template:
spec:
containers:
- name: echo-env
env:
- name: TOKEN
valueFrom:
secretKeyRef:
name: secret-@{name}
key: token
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
name: config-@{name}
defaultRouteGroup:
endpoints:
- name: echoenv
target: "http://echo-env.@{namespace}.svc:8080"