restricted once you turn on e6data pod hardening. Exceptions: the cluster log and metrics collector (on by default in e6data’s install) and the optional Metriq sandbox worker. The usage stack, Copilot, Metriq and Tessellate were not checked. Pod Security restricted and Kyverno in Enforce mode work end to end with the steps below.
Requirements
- Turn on e6data pod hardening before you enforce
restricted. - If cluster monitoring is on (the default in e6data’s install), the collector DaemonSet
otelcol-unifiedine6operatorneeds an exemption: it failsbaseline(hostPath/var/log; host ports 4317 and 4318). - The optional Metriq sandbox worker fails
baselineeven with hardening on. It needs a Pod Security exemption, or turn it 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
With e6data pod hardening 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. The operator namespace passes restricted with cluster monitoring off. With it on (the default), exempt otelcol-unified in e6operator.
Steps: Pod Security restricted
-
Turn on e6data pod hardening:
The workspace chart doesn’t expose this setting yet. Use the patch above, or the operator-wide
E6_POD_SECURITY_HARDENINGsetting, and check it is still set after a reinstall. - Restart the workspace deployments, and suspend and resume any running clusters, so pods pick up the setting.
-
Enforce:
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, Kyverno 1.19.2 in Enforce mode works end to end.
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
- 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.
See also
- Architecture - what e6data installs in your cluster.
- Use an existing EKS cluster - share the cluster with other teams.
- Security review pack - material for your security review.