Requirements
- If monitoring is on, the log collector DaemonSet needs an exemption (hostPath
/var/log,/var/lib/docker/containers; host ports 4317 and 4318). - An exemption for the two DaemonSets below, or run without them. With e6data’s Karpenter there is no NVMe DaemonSet: the node stripes its NVMe at boot.
- When Metriq is on, its sandbox worker needs a Pod Security exemption, or turn Metriq off.
- Keep
kube-systemexcluded from your policies. The e6data node scaler (Karpenter) runs there. - If your policies require the label
app.kubernetes.io/nameon every pod, add a mutate policy (below).
What passes
Workspace pod hardening is off by default. Turn it on (
workspacePodHardening.enabled: true) before you try restricted. With it on, every workspace pod runs as non-root with a read-only root filesystem, all capabilities dropped, privilege escalation off and the RuntimeDefault seccomp profile. Only the operator pod itself passes restricted. With cluster monitoring on (the default in e6data’s install), the e6operator namespace fails baseline because of the collector.
What you lose without the Azure DaemonSets
The exemption can be scoped to the e6data namespaces or to the two images only.
Steps: Kyverno or Gatekeeper label policy
If a policy requiresapp.kubernetes.io/name, the resume starts, the policy rejects the planner, queue and executor pods, and e6data rolls the cluster back to Suspended. Running pods are not affected. Add a mutate policy, scoped to the e6data namespaces, that copies e6data’s own component or app label into app.kubernetes.io/name. Mutation runs before validation, so the pods pass. With this policy, e6data runs end to end under Kyverno 1.19.2 in Enforce mode.
Steps: Azure baseline exemption
- Exempt the e6data workspace namespace, or the NVMe setup and log collector images, from the pod security baseline assignment.
- Keep the initiative’s default excluded namespaces (
kube-system,gatekeeper-system,azure-arc,azure-extensions-usage-system). If your policy removes thekube-systemexclusion, tell e6data so Karpenter can be checked. - Azure Policy constraints take about 142 seconds to sync after assignment. Recreate e6data pods after that.
Preflight check
Run a server-side dry run. It shows which policy blocks which pod, without changing anything.Verify
- Resume a cluster from the e6data console. It reaches Running.
- Run a query and check it appears in Query History.
kubectl get events -n <WORKSPACE_NAME> | grep -i FailedCreatereturns nothing.
Troubleshooting
Limitations
- NVMe setup and log collector can’t run under the baseline without an exemption.
- Pod Security
restricted: workspace pods fail it as installed. Turn on workspace pod hardening and check with a server-side dry run before you enforce it. - A specific user or group ID required by your policy: ask e6data for the supported settings.
- Putting the workspace namespace inside an Istio mesh: refused by Pod Security
restricted. Exclude e6data namespaces from the mesh or use PERMISSIVE mode; STRICT mTLS inside the namespace breaks 443 and 5432. Cilium WireGuard encryption works with no change.