2
2
# Source: mapfish-print/charts/print/templates/pdb.yaml
3
3
apiVersion : policy/v1
4
4
kind : PodDisruptionBudget
5
+ metadata :
6
+ name : example-print-not-allowed
7
+ labels :
8
+ helm.sh/chart : print
9
+ app.kubernetes.io/version : " 1.0"
10
+ app.kubernetes.io/managed-by : Helm
11
+ app.kubernetes.io/name : print
12
+ app.kubernetes.io/instance : example
13
+ app.kubernetes.io/component : not-allowed
14
+ spec :
15
+ maxUnavailable : 1
16
+ selector :
17
+ matchLabels :
18
+ app.kubernetes.io/name : print
19
+ app.kubernetes.io/instance : example
20
+ app.kubernetes.io/component : not-allowed
21
+ ---
22
+ # Source: mapfish-print/charts/print/templates/pdb.yaml
23
+ apiVersion : policy/v1
24
+ kind : PodDisruptionBudget
5
25
metadata :
6
26
name : example-print-print
7
27
labels :
51
71
CHART_NAME : print
52
72
RELEASE_NAME : example
53
73
RELEASE_NAMESPACE : default
74
+ SERVICE_NOT-ALLOWED_NAME : example-print-not-allowed
75
+ SERVICE_NOT-ALLOWED_CONTAINER_NOT-ALLOWED_IMAGE_TAG : " master"
54
76
SERVICE_PRINT_NAME : example-print-print
55
77
SERVICE_PRINT_CONTAINER_JMX-EXPORTER_IMAGE_TAG : " 0.18.0"
56
78
SERVICE_PRINT_CONTAINER_PRINT_IMAGE_TAG : " 3.30"
@@ -92,6 +114,30 @@ data:
92
114
# Source: mapfish-print/charts/print/templates/service.yaml
93
115
apiVersion : v1
94
116
kind : Service
117
+ metadata :
118
+ name : example-print-not-allowed
119
+ labels :
120
+ helm.sh/chart : print
121
+ app.kubernetes.io/version : " 1.0"
122
+ app.kubernetes.io/managed-by : Helm
123
+ app.kubernetes.io/name : print
124
+ app.kubernetes.io/instance : example
125
+ app.kubernetes.io/component : not-allowed
126
+ spec :
127
+ type : ClusterIP
128
+ ports :
129
+ - name : http
130
+ port : 80
131
+ protocol : TCP
132
+ targetPort : http
133
+ selector :
134
+ app.kubernetes.io/name : print
135
+ app.kubernetes.io/instance : example
136
+ app.kubernetes.io/component : not-allowed
137
+ ---
138
+ # Source: mapfish-print/charts/print/templates/service.yaml
139
+ apiVersion : v1
140
+ kind : Service
95
141
metadata :
96
142
name : example-print-print
97
143
labels :
@@ -105,7 +151,7 @@ spec:
105
151
type : ClusterIP
106
152
ports :
107
153
- name : http
108
- port : 8080
154
+ port : 80
109
155
protocol : TCP
110
156
targetPort : http
111
157
selector :
@@ -116,6 +162,79 @@ spec:
116
162
# Source: mapfish-print/charts/print/templates/deployment.yaml
117
163
apiVersion : apps/v1
118
164
kind : Deployment
165
+ metadata :
166
+ name : example-print-not-allowed
167
+ labels :
168
+ helm.sh/chart : print
169
+ app.kubernetes.io/version : " 1.0"
170
+ app.kubernetes.io/managed-by : Helm
171
+ app.kubernetes.io/name : print
172
+ app.kubernetes.io/instance : example
173
+ app.kubernetes.io/component : not-allowed
174
+ spec :
175
+ revisionHistoryLimit : 3
176
+ strategy :
177
+ type : RollingUpdate
178
+ selector :
179
+ matchLabels :
180
+ app.kubernetes.io/name : print
181
+ app.kubernetes.io/instance : example
182
+ app.kubernetes.io/component : not-allowed
183
+ template :
184
+ metadata :
185
+ labels :
186
+ app.kubernetes.io/name : print
187
+ app.kubernetes.io/instance : example
188
+ app.kubernetes.io/component : not-allowed
189
+ spec :
190
+ imagePullSecrets :
191
+ - name : example-print-docker-registry
192
+ serviceAccountName : default
193
+ securityContext :
194
+ {}
195
+ containers :
196
+ - name : not-allowed
197
+ securityContext :
198
+ runAsNonRoot : true
199
+ runAsUser : 33
200
+ image : " camptocamp/maintenance@sha256:7cbddc1e17e422abc9d98781e9194a45f2c76f00dd8e4950c59bfc45f616f4a0"
201
+ imagePullPolicy : IfNotPresent
202
+ env :
203
+ - name : " HEADLINE"
204
+ value : Not allowed
205
+ - name : " MESSAGE"
206
+ value : You are not allowed to see the metrics
207
+ - name : " RESPONSE_CODE"
208
+ value : 403 Forbidden
209
+ - name : " TITLE"
210
+ value : Not allowed
211
+ terminationMessagePolicy : FallbackToLogsOnError
212
+ resources :
213
+ limits :
214
+ cpu : 0.2
215
+ ephemeral-storage : 2Mi
216
+ memory : 5Mi
217
+ requests :
218
+ cpu : 0.1
219
+ ephemeral-storage : 1Mi
220
+ memory : 500Ki
221
+ volumeMounts :
222
+ - mountPath : /data
223
+ name : data
224
+
225
+ ports :
226
+ - name : http
227
+ containerPort : 8080
228
+ protocol : TCP
229
+
230
+
231
+ volumes :
232
+ - name : data
233
+ emptyDir : {}
234
+ ---
235
+ # Source: mapfish-print/charts/print/templates/deployment.yaml
236
+ apiVersion : apps/v1
237
+ kind : Deployment
119
238
metadata :
120
239
name : example-print-print
121
240
labels :
@@ -351,6 +470,13 @@ spec:
351
470
- host : " print.example.com"
352
471
http :
353
472
paths :
473
+ - path : " /metrics"
474
+ pathType : Prefix
475
+ backend :
476
+ service :
477
+ name : example-print-not-allowed
478
+ port :
479
+ number : 80
354
480
- path : " /"
355
481
pathType : Prefix
356
482
backend :
@@ -381,6 +507,13 @@ spec:
381
507
- host : " my-technical-url.example.com"
382
508
http :
383
509
paths :
510
+ - path : " /metrics"
511
+ pathType : Prefix
512
+ backend :
513
+ service :
514
+ name : example-print-not-allowed
515
+ port :
516
+ number : 80
384
517
- path : " /"
385
518
pathType : Prefix
386
519
backend :
0 commit comments