with one click
deploy-app
Guide deploying an application to OpenShift. Use when the user wants to deploy a new app, create a deployment, set up services and routes. Covers S2I, Docker, Helm, and raw YAML approaches.
Menu
Guide deploying an application to OpenShift. Use when the user wants to deploy a new app, create a deployment, set up services and routes. Covers S2I, Docker, Helm, and raw YAML approaches.
OpenShift Lightspeed CLI — AI-powered assistant for OpenShift from your terminal. Connects to OpenShift Lightspeed Service (OLS) REST API and provides interactive chat, streaming responses, cluster-aware tools, and session management. Use when working with OpenShift clusters, Kubernetes operations, or needing AI-powered cluster assistance from the command line.
Check the overall health of an OpenShift cluster. Use when the user asks about cluster status, node health, capacity, or wants a quick health overview.
Run a security audit on an OpenShift namespace or cluster. Use when the user asks about security posture, RBAC, SCCs, network policies, or compliance.
Troubleshoot a problematic pod in OpenShift. Use when a pod is CrashLooping, not ready, failing health checks, or showing errors. Walks through events, logs, describe, and common failure patterns.
| name | deploy-app |
| description | Guide deploying an application to OpenShift. Use when the user wants to deploy a new app, create a deployment, set up services and routes. Covers S2I, Docker, Helm, and raw YAML approaches. |
| metadata | {"author":"kcns008","version":"0.1.0"} |
Ask about the app
Choose deployment method
| Method | Best For |
|---|---|
oc new-app | Quick deploy from source or image |
oc new-build + deploy | Custom build pipeline |
| Helm chart | Complex apps with config |
| Raw YAML/Kustomize | Full control |
Deploy
# From Git (S2I)
oc new-app https://github.com/user/repo.git --name=myapp -n myns
# From image
oc new-app myimage:tag --name=myapp -n myns
# Expose
oc expose svc/myapp
Verify
oc_get: resource=pods -n <namespace>
oc_get: resource=svc -n <namespace>
oc_get: resource=route -n <namespace>
Set up health checks (if not auto-detected)
oc set probe dc/myapp --readiness --get-url=http://:8080/health
oc set probe dc/myapp --liveness --get-url=http://:8080/health
Configure resources
oc set resources dc/myapp --requests=cpu=100m,memory=256Mi --limits=cpu=500m,memory=512Mi