Jak używać
- Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
- W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
- Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/paulanunes85/three-horizons-accelerator --skill oc-cliPrzed rozpoczęciem
- Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
- Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill
Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.
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-serverProject 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-operatorsRoute 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
- Use projects for namespace isolation
- Prefer oc to kubectl for OpenShift-specific features
- Use Operators for complex application management
- Enable NetworkPolicies for pod isolation
Output Format
- Command executed
- Operation result
- Relevant status information
- Next steps
Integration with Agents
Used by: @platform, @devops

