hypershift-cluster
Skill1 starsChanged 4 months agoApache-2.0View on GitHub
Create and destroy ephemeral HyperShift (hosted OpenShift) clusters on AWS. Owns the shared HyperShift scripts and lib that the other HyperShift skills reference. Use when you need to create a test OpenShift cluster, destroy one after testing, or look up cluster naming, environment variables, or the post-create deploy/e2e workflow.
- Reads credentials
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- automation-health-dashboardSkill
- byo-rossoctl-cortexSkill
- dep-bump-fixerSkill
- dep-bump-scannerSkill
- github-pr-reviewSkill
- github-weekly-reportSkill
- hypershift-cleanupSkill
- hypershift-debugSkill
- hypershift-preflightSkill
- hypershift-quotasSkill
- hypershift-setupSkill
- hypershiftSkill
- link-health-fixerSkill
- link-health-scannerSkill
- repo-syncSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Create, destroy, and manage HyperShift clusters on AWS for testing.
- Very specific: line 31
Before creating clusters, ensure setup is complete (see the hypershift-setup skill for detail):
- Distinctive: line 193
hypershift-preflight: Run pre-flight checks
- Distinctive: line 194
hypershift-quotas: Check AWS quotas and plan parallel capacity
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HyperShift Cluster Management Skill
Create, destroy, and manage HyperShift clusters on AWS for testing.
This skill owns the shared scripts. Every HyperShift script and the shared
hypershift-lib.sh live under scripts/ here; the other HyperShift skills point
at them via ../hypershift-cluster/scripts/.... Run any script with no arguments
(or --help where supported) to see its options first.
When to Use
- Need to create a test OpenShift cluster on AWS
- Destroying a cluster after testing
- User asks "create hypershift cluster" or "destroy cluster"
- Testing on real OpenShift (not Kind)
Prerequisites
Before creating clusters, ensure setup is complete (see the hypershift-setup
skill for detail):
# 1. Run preflight check
scripts/preflight-check.sh
# 2. Setup credentials (first time only, requires IAM admin)
scripts/setup-hypershift-ci-credentials.sh
# 3. Setup local tools (hcp CLI, ansible, etc.)
scripts/local-setup.shThe scripts locate your credentials file relative to your current working
directory (or via $HYPERSHIFT_ENV_FILE) and the hypershift-automation clone
via $HYPERSHIFT_AUTOMATION_DIR (falling back to a sibling of your cwd or
$HOME/hypershift-automation). They do not assume any particular repository
layout.
Create Cluster
Quick Create (Default Suffix)
# Creates: rossoctl-hypershift-custom-<username>
scripts/create-cluster.shCreate with Custom Suffix
# Creates: rossoctl-hypershift-custom-pr529
scripts/create-cluster.sh pr529
# Creates: rossoctl-hypershift-custom-mytest
scripts/create-cluster.sh mytestCreate with Custom Configuration
# More worker nodes and larger instances
REPLICAS=3 INSTANCE_TYPE=m5.2xlarge scripts/create-cluster.sh
# Specific OCP version
OCP_VERSION=4.19.5 scripts/create-cluster.shEnvironment Variables
| Variable | Default | Description |
REPLICAS | 2 | Number of worker nodes |
INSTANCE_TYPE | m5.xlarge | AWS instance type |
OCP_VERSION | 4.20.11 | OpenShift version |
CLUSTER_SUFFIX | username | Suffix for cluster name |
MANAGED_BY_TAG | rossoctl-hypershift-custom | IAM scope prefix |
Destroy Cluster
Quick Destroy
# Destroy by suffix
scripts/destroy-cluster.sh <suffix>
# Examples:
scripts/destroy-cluster.sh pr529
scripts/destroy-cluster.sh ladasDestroy by Full Name
scripts/destroy-cluster.sh rossoctl-hypershift-custom-pr529After Cluster Creation
The create script outputs next steps. A typical workflow deploys the platform onto the new cluster. These deploy/e2e steps run from a rossoctl checkout (they are not bundled with this skill):
# 1. Set kubeconfig to new cluster
export KUBECONFIG=~/clusters/hcp/<cluster-name>/auth/kubeconfig
# 2. Verify cluster access
oc get nodes
oc get clusterversion
# 3. Deploy the platform (from a rossoctl checkout)
./.github/scripts/operator/30-run-installer.sh --env ocp
./.github/scripts/operator/41-wait-crds.sh
# 4. Deploy demo agents
./.github/scripts/operator/71-build-weather-tool.sh
./.github/scripts/operator/72-deploy-weather-tool.sh
./.github/scripts/operator/74-deploy-weather-agent.sh
# 5. Run E2E tests
export AGENT_URL="https://$(oc get route -n team1 weather-service -o jsonpath='{.spec.host}')"
export ROSSOCTL_CONFIG_FILE=deployments/envs/ocp_values.yaml
./.github/scripts/operator/90-run-e2e-tests.shCluster Naming
Clusters are named: ${MANAGED_BY_TAG}-${CLUSTER_SUFFIX}
| MANAGED_BY_TAG | Use Case | Example |
rossoctl-hypershift-custom | Local development (default) | rossoctl-hypershift-custom-ladas |
rossoctl-hypershift-ci | CI/CD pipelines | rossoctl-hypershift-ci-pr529 |
The cluster suffix is limited to 5 characters (AWS IAM role-name length limit).
Troubleshooting
Cluster Creation Stuck
# Check HostedCluster status (use management cluster kubeconfig)
source .env.rossoctl-hypershift-custom # or .env.hypershift-ci
oc get hostedcluster -n clusters
# Check conditions
oc get hostedcluster -n clusters <cluster-name> -o jsonpath='{range .status.conditions[*]}{.type}{": "}{.status}{" - "}{.message}{"\n"}{end}'
# Check NodePool
oc get nodepool -n clusters <cluster-name>Cluster Deletion Stuck
# Debug AWS resources (see the hypershift-debug skill)
scripts/debug-aws-hypershift.sh <cluster-name>
# Force remove finalizer (only if AWS resources are cleaned)
oc patch hostedcluster -n clusters <cluster-name> -p '{"metadata":{"finalizers":null}}' --type=mergeControl Plane Namespace Issues
# If namespace is stuck terminating
oc delete ns clusters-<cluster-name> --wait=false
oc patch ns clusters-<cluster-name> -p '{"metadata":{"finalizers":null}}' --type=mergeCheck AWS Quotas
# Before creating clusters, check capacity (see the hypershift-quotas skill)
scripts/check-quotas.shRelated Skills
- hypershift-setup: Set up the local environment for HyperShift
- hypershift-preflight: Run pre-flight checks
- hypershift-quotas: Check AWS quotas and plan parallel capacity
- hypershift-debug: Debug AWS resources for stuck clusters
- hypershift-cleanup: TTL/label-based auto-cleanup of stale clusters
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

