diff --git a/apps/longhorn.yaml b/apps/longhorn.yaml index f3b9e1a..4d16a4c 100644 --- a/apps/longhorn.yaml +++ b/apps/longhorn.yaml @@ -32,5 +32,14 @@ spec: automated: prune: 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: - CreateNamespace=true