-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-deployment.yaml
104 lines (101 loc) · 2.17 KB
/
app-deployment.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: v1
kind: Namespace
metadata:
name: local
---
apiVersion: "rcube.com/v1"
kind: ConfigMapCustomResource
metadata:
namespace: local
name: application-toggles-config
labels:
application: nginx-deployment
spec:
config:
data:
application-toggles-config.json: |
{
"startNewFlow": true
}
schema:
application-toggles-config.json: |
{
"type": "object",
"properties": {
"startNewFlow": {
"type": "boolean"
}
},
"required": [
"startNewFlow"
]
}
---
apiVersion: "rcube.com/v1"
kind: ConfigMapCustomResource
metadata:
namespace: local
name: projected-config
labels:
application: nginx-deployment
spec:
config:
data:
allow-snippet-annotations: "false"
projected-config.json: |
{
"aProjectedConfig": true
}
schema:
projected-config.json: |
{
"type": "object",
"properties": {
"aProjectedConfig": {
"type": "boolean"
}
},
"required": [
"aProjectedConfig"
]
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: local
labels:
app: nginx
config-map-version: "master-10"
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
volumeMounts:
# - name: application-toggles-config
# mountPath: /etc/config
- name: projected-config
mountPath: /etc/config
ports:
- containerPort: 80
volumes:
# - name: application-toggles-config
# configMap:
# name: "application-toggles-config-master-10"
- name: projected-config
projected:
sources:
- configMap:
name: application-toggles-config-master-10
- configMap:
name: projected-config-master-10