Skip to content
Snippets Groups Projects
Verified Commit 09b6dbe2 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

chore: Prepare 1.24.x release with privileged labels

This patch prepares the switch to Kubernetes 1.24.x which switches to
PSS instead of PSP. Therefore it's a good start to prepare our most
important namespaces with the relevant labels to allow Pods to use
privileged runtime features.

References:
https://kubernetes.io/docs/concepts/security/pod-security-standards/
https://v1-23.docs.kubernetes.io/docs/concepts/security/pod-security-policy/
https://v1-23.docs.kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/
parent 4e635d45
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,7 @@ kind: Namespace
metadata:
name: tigera-operator
labels:
kyverno.shivering-isles.com/class: "system"
kyverno.shivering-isles.com/class: "system"
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
......@@ -6,3 +6,6 @@ metadata:
name: longhorn-system
kyverno.shivering-isles.com/class: "system"
kustomize.toolkit.fluxcd.io/prune: disabled
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
......@@ -4,4 +4,7 @@ metadata:
name: metallb-system
labels:
name: metallb-system
kyverno.shivering-isles.com/class: "system"
kyverno.shivering-isles.com/class: "system"
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
......@@ -6,3 +6,6 @@ metadata:
name: monitoring-system
kyverno.shivering-isles.com/class: "system"
monitoring.shivering-isles.com/network-access-required: "true"
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
......@@ -5,3 +5,6 @@ metadata:
labels:
name: node-features-system
kyverno.shivering-isles.com/class: "system"
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment