Interview Prep/Helm/Chart Design & Authoring

Your chart must run on OpenShift and vanilla Kubernetes. What needs care?

AdvancedScenarioChart Design & Authoring
Answer

Situation read → OpenShift's restricted SCC assigns a random UID per namespace and rejects fixed runAsUser; it also uses Routes.

What I'd do →

  1. Make runAsUser/fsGroup optional (render only when set) and ensure images work with arbitrary UIDs (group 0 writable dirs).
  2. Detect OpenShift with .Capabilities.APIVersions.Has "route.openshift.io/v1" and optionally render a Route.
  3. Avoid privileged ports (<1024) and hostPath.
  4. Test with helm template --api-versions route.openshift.io/v1 and on a CRC or OKD cluster in CI.

Why → Platform differences belong in capability checks and values, not forks.

Interview tip → Mention arbitrary UID support as the most common OpenShift chart failure.

All Helm questions Roadmap: Helm

More on Chart Design & Authoring