/kubernetes-platform-skills:openshift-and-rosa-platformfrom kubernetes-platform-skills
Guides working with OpenShift-specific Kubernetes concepts — Routes, SCCs, Projects, OLM — plus ROSA provisioning and the AWS/Red Hat shared responsibility split.
Ships in kubernetes-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OpenShift is a Kubernetes distribution that layers additional opinionated primitives — Routes instead of bare Ingress, Security Context Constraints instead of raw Pod Security admission alone, Projects as a wrapper around Namespaces, and OLM for Operator lifecycle — on top of vanilla Kubernetes. These differences are exactly where Kubernetes-general knowledge silently fails on OpenShift: a manifest that works on EKS/GKE can be rejected outright by SCCs, and "just expose it with an Ingress" isn't quite how OpenShift users typically expose services. ROSA adds a further layer: Red Hat manages the control plane and much of the infrastructure inside an AWS account the customer still owns, with a specific shared-responsibility split that changes incident response and access assumptions. This skill covers both.
unable to validate against any security context constraint).oc CLI (OpenShift's kubectl superset) matched to the target
cluster's OpenShift version — OpenShift versions track upstream
Kubernetes on a roughly 3-releases-behind cadence (e.g. OpenShift 4.16
ships Kubernetes 1.29), so confirm compatibility before assuming a
Kubernetes feature/API version is available.rosa CLI ≥ 1.2 for ROSA-specific provisioning
(rosa create cluster), plus an AWS account meeting ROSA's
prerequisites (VPC, IAM roles created via rosa create account-roles,
or STS-mode OIDC provider setup for the newer, recommended STS
deployment mode over the legacy IAM-user mode).oc role bindings appropriate to the
task (creating Projects/OLM subscriptions typically needs elevated
cluster roles; deploying into an existing Project needs only
namespace-scoped edit/admin).Expose a Service with a Route rather than (or in addition to) an Ingress — Routes are OpenShift-native and integrate with the platform's built-in router (HAProxy-based) without requiring a separately installed Ingress controller:
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: payments-api
namespace: payments
spec:
host: payments.apps.cluster.example.com
to:
kind: Service
name: payments-api
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
OpenShift also supports standard Kubernetes Ingress objects (the
platform's Ingress Operator translates them to Routes automatically),
so existing Ingress manifests generally still work, but native Route
fields (weighted multi-service routing, path-based Route merging
rules) aren't expressible through the Ingress object.
Create a Project (OpenShift's Namespace wrapper, adding self-service provisioning and default RBAC/quota hooks):
oc new-project payments --description="Payments platform" --display-name="Payments"
A Project is a Namespace with additional OpenShift-managed
annotations — kubectl get namespace payments shows the same object.
Diagnose SCC rejections when a pod fails to start:
oc get events -n payments --field-selector reason=FailedCreate
# "unable to validate against any security context constraint" is the tell
Check what the pod's spec requires (running as a specific UID,
hostNetwork, added Linux capabilities) against the SCCs available
to its ServiceAccount:
oc get scc
oc describe scc restricted-v2
oc get serviceaccount payments-api -n payments -o yaml
The default restricted-v2 SCC (OpenShift ≥ 4.11) forbids running as
a fixed root/specific UID, privilege escalation, and most added
capabilities — the common fix is adjusting the application to run
as an arbitrary, non-root UID (the platform assigns one from the
Project's allocated UID range) rather than granting a broader SCC:
spec:
containers:
- name: payments-api
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities: { drop: ["ALL"] }
Warning: granting a broader SCC (
anyuid,privileged) to unblock a pod is a security-posture regression, not a routine fix — treat it as an exception requiring review, and prefer fixing the container image/app to run under an arbitrary non-root UID instead.
Install an Operator via OLM rather than raw manifests, for any Operator distributed through Red Hat's or a community catalog:
oc get packagemanifests -n openshift-marketplace | grep cert-manager
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: cert-manager-operator
namespace: openshift-operators
spec:
channel: stable-v1
name: openshift-cert-manager-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
installPlanApproval: Automatic
oc apply -f cert-manager-subscription.yaml
oc get csv -n openshift-operators # confirm Succeeded phase
Set installPlanApproval: Manual for production clusters where
Operator upgrades should be reviewed before applying, rather than
Automatic, which applies new InstallPlans as soon as the catalog
publishes them.
Provision a ROSA cluster (STS mode — the recommended, keyless-role deployment model over the legacy IAM-user mode):
rosa create account-roles --mode auto --yes
rosa create cluster --cluster-name payments-prod --sts \
--region us-east-1 --version 4.16 \
--machine-cidr 10.0.0.0/16 --compute-nodes 3
rosa create operator-roles --cluster payments-prod --mode auto --yes
rosa create oidc-provider --cluster payments-prod --mode auto --yes
rosa describe cluster --cluster payments-prod
rosa create admin --cluster payments-prod # break-glass cluster-admin user
Understand the ROSA shared-responsibility split before treating any incident as fully self-serviceable:
Validate before promoting a manifest written for vanilla Kubernetes to run on OpenShift/ROSA:
oc apply --dry-run=server -f deployment.yaml
oc adm policy scc-subject-review -f deployment.yaml
scc-subject-review reports which SCC (if any) would admit the pod
spec as written, surfacing SCC issues before a real apply attempt.
restricted-v2) over granting broader SCCs — this
keeps the same image portable to non-OpenShift Kubernetes too.Subscriptions with installPlanApproval: Manual in
production namespaces so Operator upgrades are a reviewed,
deliberate action, not an automatic side effect of the catalog
publishing a new version.ResourceQuota and LimitRange from creation,
not as an afterthought — Project self-service creation without quotas
is a common path to one team's workload starving node capacity for
others.rosa create admin's break-glass cluster-admin credential like
any other break-glass credential: time-box its use, and prefer
federated identity-provider-based cluster access (rosa create idp) for day-to-day admin access instead.Symptom: A Deployment that runs fine on EKS/GKE fails to schedule
on OpenShift with unable to validate against any security context constraint.
Fix: The pod spec requests something restricted-v2 (the
default SCC most ServiceAccounts get) forbids — commonly a fixed
non-arbitrary UID, added capabilities, or hostNetwork. Adjust the
container to run as an arbitrary non-root UID rather than granting a
broader SCC as the default fix.
Symptom: An Ingress object applied on OpenShift doesn't produce
the expected external hostname/behavior seen on other clouds.
Fix: Confirm whether the cluster's Ingress Operator actually
translated it into a Route (oc get route) and whether OpenShift-
specific fields the team expected (weighted routing, custom
insecureEdgeTerminationPolicy) need to be set directly on a native
Route object instead, since the Ingress-to-Route translation only
covers the common subset of fields.
Symptom: An OLM Subscription shows InstallPlan stuck in
RequiresApproval and the Operator never actually installs/upgrades.
Fix: This is expected behavior under
installPlanApproval: Manual — approve the pending InstallPlan
explicitly (oc get installplan -n <ns> then oc patch installplan <name> -p '{"spec":{"approved":true}}' --type merge) rather than
assuming Manual mode is broken; it's working as configured.
Symptom: A ROSA cluster incident (e.g. slow API server responses)
gets escalated internally for hours before anyone realizes the
control plane is Red-Hat-managed.
Fix: Confirm which shared-responsibility bucket the symptom falls
into before spending internal on-call time on it — control-plane
health/performance issues on ROSA are Red Hat's operational
responsibility and should go through Red Hat support channels
(rosa cluster ID and support case) in parallel with, not instead
of, internal triage of anything workload-side.
Symptom: rosa create cluster --sts fails partway through with a
missing-role error.
Fix: STS-mode ROSA requires rosa create account-roles and later
rosa create operator-roles/rosa create oidc-provider to be run in
the correct order relative to cluster creation — re-run rosa create account-roles --mode auto and confirm rosa list account-roles
shows the expected roles before retrying cluster creation, rather
than assuming the CLI's --mode auto handles every prerequisite
automatically in one pass.
Scenario: Provision a ROSA STS cluster, create a Project with quota, deploy an app that needs SCC adjustment to run non-root, and expose it via Route.
rosa create account-roles --mode auto --yes
rosa create cluster --cluster-name payments-prod --sts \
--region us-east-1 --version 4.16 --compute-nodes 3
rosa create operator-roles --cluster payments-prod --mode auto --yes
rosa create oidc-provider --cluster payments-prod --mode auto --yes
rosa create idp --cluster payments-prod --type github \
--client-id <CLIENT_ID> --client-secret <CLIENT_SECRET_PLACEHOLDER>
oc new-project payments --display-name="Payments"
apiVersion: v1
kind: ResourceQuota
metadata: { name: payments-quota, namespace: payments }
spec:
hard: { "requests.cpu": "8", "requests.memory": 16Gi, pods: "40" }
apiVersion: apps/v1
kind: Deployment
metadata: { name: payments-api, namespace: payments }
spec:
replicas: 3
selector: { matchLabels: { app: payments-api } }
template:
metadata: { labels: { app: payments-api } }
spec:
containers:
- name: payments-api
image: ghcr.io/example/payments-api:1.4.2
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities: { drop: ["ALL"] }
ports: [{ containerPort: 8080 }]
---
apiVersion: v1
kind: Service
metadata: { name: payments-api, namespace: payments }
spec:
selector: { app: payments-api }
ports: [{ port: 8080, targetPort: 8080 }]
---
apiVersion: route.openshift.io/v1
kind: Route
metadata: { name: payments-api, namespace: payments }
spec:
host: payments.apps.payments-prod.example.com
to: { kind: Service, name: payments-api }
tls: { termination: edge, insecureEdgeTerminationPolicy: Redirect }
oc apply -f quota.yaml -f deployment.yaml -f service.yaml -f route.yaml
oc get route payments-api -n payments
The pod schedules successfully under restricted-v2 because it runs
non-root with no added capabilities, and oc get route shows the
externally reachable HTTPS host served by OpenShift's built-in router —
with cluster-control-plane health and node OS patching handled by Red
Hat's SRE team per the ROSA shared-responsibility model, not by the
cluster's own operators.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skills35 skills in this plugin
/cert-manager-tls-automationGuides installing and configuring cert-manager for automated TLS certificate issuance and renewal — Issuers vs. ClusterIssuers, ACME/ Let's Encrypt HTTP-01 and DNS-01 challenges, private-CA issuance, and integration with Ingress-nginx and Istio gateways. Use when a user asks to "automate TLS certificates on Kubernetes," "set up cert-manager with Let's Encrypt," "fix a stuck Certificate that won't become Ready," "use DNS-01 for a wildcard cert," "rotate mTLS certs automatically," or "issue certs from an internal CA."
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
/complete-kubernetes-deployment-on-eks-from-scratchSequences a complete, end-to-end EKS deployment from a bare AWS account to a production-ready cluster serving a first workload — landing zone/IAM prerequisites, EKS cluster and node group provisioning, VPC CNI (with the Calico/Cilium alternative noted), ingress (ALB vs. ingress-nginx), cert- manager with Route 53 DNS-01, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/ orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on EKS from scratch," "stand up a new EKS environment end to end," "build a production EKS cluster from a fresh AWS account," or "give me the full sequence to go from nothing to a working EKS cluster."
/complete-kubernetes-deployment-on-gke-from-scratchSequences a complete, end-to-end GKE deployment from a bare GCP project to a production-ready cluster serving a first workload — GCP landing zone prerequisites, GKE cluster and node pool provisioning, VPC-native/ Dataplane V2 CNI (with the Calico alternative noted), ingress (GKE Ingress/Gateway API vs. ingress-nginx), cert-manager with Cloud DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on GKE from scratch," "set up a new GKE environment end to end," "build a production GKE cluster from a fresh GCP project," or "give me the full sequence to go from nothing to a working GKE cluster."
/complete-kubernetes-deployment-on-oke-oci-from-scratchSequences a complete, end-to-end OKE (Oracle Container Engine for Kubernetes) deployment from a bare OCI tenancy to a production-ready cluster serving a first workload — OCI landing zone prerequisites (Compartments, Dynamic Groups), OKE Enhanced cluster and node pool provisioning, VCN-Native pod networking (with the Calico NetworkPolicy add-on noted), ingress (Native Ingress Controller vs. ingress-nginx), cert-manager with OCI DNS via a community webhook solver, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill sequencing several existing tool-specific skills in the correct order and flagging the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on OKE from scratch," "set up OKE on OCI end to end," "build a production OKE cluster from a fresh OCI tenancy," or "give me the full sequence to go from nothing to a working OKE cluster."
Other plugins' skills for the same job