File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
manifests/01-admission-control
node-pools/master-default Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,30 @@ webhooks:
268
268
resources : ["rolebindings", "clusterrolebindings"]
269
269
{{- end }}
270
270
{{- if eq .Cluster.ConfigItems.teapot_admission_controller_enable_write_protection_webhook "true" }}
271
+ - name : pod-exec-admitter.teapot.zalan.do
272
+ clientConfig :
273
+ url : " https://localhost:8085/pod/exec"
274
+ caBundle : " {{ .Cluster.ConfigItems.ca_cert_decompressed }}"
275
+ admissionReviewVersions : ["v1beta1"]
276
+ failurePolicy : Fail
277
+ sideEffects : " NoneOnDryRun"
278
+ matchPolicy : Equivalent
279
+ namespaceSelector :
280
+ matchExpressions :
281
+ - key : kubernetes.io/metadata.name
282
+ operator : NotIn
283
+ values : [ "kube-system", "visibility", "kubenurse" ]
284
+ rules :
285
+ - operations : [ "CONNECT" ]
286
+ apiGroups : [""]
287
+ apiVersions : ["v1"]
288
+ resources : ["pods/exec"]
289
+ scope : " Namespaced"
290
+ matchConditions :
291
+ - name : ' exclude-privileged-groups'
292
+ expression : ' request.userInfo.groups.all(g, !(g in ["okta:common/administrator", "zalando:administrator"]))'
293
+ - name : ' exclude-postgres-admins'
294
+ expression : ' request.userInfo.groups.all(g, !(g in ["okta:common/postgres-admin"]))'
271
295
- name : namespaced-deny-admitter.teapot.zalan.do
272
296
clientConfig :
273
297
url : " https://localhost:8085/deny"
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ write_files:
206
206
limits :
207
207
memory : {{ .Values.InstanceInfo.MemoryFraction (parseInt64 .Cluster.ConfigItems.apiserver_memory_limit_percent)}}
208
208
{{- end }}
209
- - image : 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/admission-controller:master-226
209
+ - image : 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/admission-controller:master-227
210
210
name : admission-controller
211
211
lifecycle :
212
212
preStop :
You can’t perform that action at this time.
0 commit comments