Skip to content

Commit

Permalink
PodSecurity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergelogvinov committed Jul 13, 2022
1 parent bf70993 commit 225394d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hetzner/deployments/hcloud-cloud-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ spec:
metadata:
labels:
app: hcloud-cloud-controller-manager
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
serviceAccountName: cloud-controller-manager
dnsPolicy: Default
Expand Down
19 changes: 19 additions & 0 deletions hetzner/templates/controlplane.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,25 @@ cluster:
- "${ipv4_local}"
- "${ipv4_vip}"
- "${apiDomain}"
admissionControl:
- name: PodSecurity
configuration:
apiVersion: pod-security.admission.config.k8s.io/v1alpha1
defaults:
audit: restricted
audit-version: latest
enforce: baseline
enforce-version: latest
warn: restricted
warn-version: latest
exemptions:
namespaces:
- kube-system
- ingress-nginx
- local-path-provisioner
runtimeClasses: []
usernames: []
kind: PodSecurityConfiguration
controllerManager:
extraArgs:
node-cidr-mask-size-ipv4: 24
Expand Down

0 comments on commit 225394d

Please sign in to comment.