Allow Longhorn's privileged storage Pods via namespace Pod Security labels
This commit is contained in:
@@ -32,5 +32,14 @@ spec:
|
|||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
|
# Longhorn's manager Pods need hostPath volumes and privileged mode to
|
||||||
|
# manage block devices directly on each node. Kubernetes' baseline Pod
|
||||||
|
# Security profile rejects both, so this namespace is explicitly opted
|
||||||
|
# into the privileged profile—scoped only to longhorn-system.
|
||||||
|
managedNamespaceMetadata:
|
||||||
|
labels:
|
||||||
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
|
pod-security.kubernetes.io/audit: privileged
|
||||||
|
pod-security.kubernetes.io/warn: privileged
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
|||||||
Reference in New Issue
Block a user