Anything you do to Red Hat OpenShift twice should be automated. This walks the path from a manual install to a repeatable, pipeline-driven setup.
1. Install it reproducibly
# Local single-node cluster
crc setup && crc start
oc login -u developer https://api.crc.testing:64432. Describe the desired state
A Route exposing a Service over HTTPS.
apiVersion: route.openshift.io/v1
kind: Route
metadata: { name: web }
spec:
to: { kind: Service, name: web }
port: { targetPort: 3000 }
tls: { termination: edge }3. Run it from CI
Build from source in-cluster with a BuildConfig.
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata: { name: web }
spec:
source: { git: { uri: https://github.com/acme/web } }
strategy: { type: Docker }
output: { to: { kind: ImageStreamTag, name: 'web:latest' } }Want senior help putting Red Hat OpenShift to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.