oc-cli
paulanunes85/three-horizons-accelerator/.github/skills/oc-cli/SKILL.md
OpenShift CLI operations for ARO cluster management
Skill2 starsChanged 8 months ago
What's in it
- When to Use
- Prerequisites
- Commands
- Authentication
- Project Operations
- Operator Management
- Route Management
- Best Practices
- Output Format
- Integration with Agents
---
name: oc-cli
description: OpenShift CLI operations for ARO cluster management
---
## When to Use
- Azure Red Hat OpenShift (ARO) operations
- OpenShift-specific resource management
- Operator lifecycle management
- Route and build configurations
## Prerequisites
- OpenShift CLI (oc) installed
- Authenticated to ARO cluster
- Appropriate RBAC permissions
## Commands
### Authentication
```bash
# Login with token
oc login --token=<token> --server=<api-server>
# Login with kubeadmin
oc login -u kubeadmin -p <password> --server=<api-server>
# Current context
oc whoami --show-server
```
### Project Operations
```bash
# List projects
oc projects
# Switch project
oc project <project-name>
# Create project
oc new-project <project-name>
```
### Operator Management
```bash
# List installed operators
oc get csv -n openshift-operators
# View operator status
oc describe csv <operator-name> -n openshift-operators
```
### Route Management
```bash
# List routes
oc get routes -A
# Create route
oc expose service <service-name>
# Get route URL
oc get route <route-name> -o jsonpath='{.spec.host}'
```
## Best Practices
1. Use projects for namespace isolation
2. Prefer oc to kubectl for OpenShift-specific features
3. Use Operators for complex application management
4. Enable NetworkPolicies for pod isolation
## Output Format
1. Command executed
2. Operation result
3. Relevant status information
4. Next steps
## Integration with Agents
Used by: @platform, @devops
More agent context in paulanunes85/three-horizons-accelerator
19 other files this repository gives its agents.
AGENTS.md
Copilot instructions
Skill
- ai-foundry-operations.github/skills/ai-foundry-operations/SKILL.md
- argocd-cli.github/skills/argocd-cli/SKILL.md
- aro-deployment.github/skills/aro-deployment/SKILL.md
- azure-cli.github/skills/azure-cli/SKILL.md
- azure-infrastructure.github/skills/azure-infrastructure/SKILL.md
- database-management.github/skills/database-management/SKILL.md
- deploy-orchestration.github/skills/deploy-orchestration/SKILL.md
- github-cli.github/skills/github-cli/SKILL.md
- helm-cli.github/skills/helm-cli/SKILL.md
- kubectl-cli.github/skills/kubectl-cli/SKILL.md
- mcp-cli.github/skills/mcp-cli/SKILL.md
- observability-stack.github/skills/observability-stack/SKILL.md
- openshift-operations.github/skills/openshift-operations/SKILL.md
- prerequisites.github/skills/prerequisites/SKILL.md
- rhdh-portal.github/skills/rhdh-portal/SKILL.md
- terraform-cli.github/skills/terraform-cli/SKILL.md
- validation-scripts.github/skills/validation-scripts/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

