#OpenShift
Red Hat's enterprise Kubernetes platform.
#Overview
OpenShift = Kubernetes + Enterprise Features
| Feature | Description |
|---|---|
| Built on K8s | 100% Kubernetes compatible |
| Developer Tools | Built-in CI/CD, S2I |
| Security | Hardened by default |
| Console | Full web UI |
#oc CLI
bash
1# Login
2oc login https://api.cluster.example.com:6443
3
4# Create project (namespace)
5oc new-project myapp
6
7# Deploy from source
8oc new-app https://github.com/user/repo.git
9
10# Deploy from image
11oc new-app nginx
12
13# Expose route
14oc expose svc/myapp
15
16# View resources
17oc get pods
18oc get routes#Source-to-Image (S2I)
bash
1# Build from source
2oc new-app python~https://github.com/user/python-app.git
3
4# Using template
5oc new-app --template=nodejs-mongodb-example[!TIP] Pro Tip: OpenShift is great for enterprises needing Kubernetes with support!