Container Orchestration and Platform as a Service Solution Automates the deployment and management of containers
Creates a new application
Supports different sources
Image is built from sources
oc new-app https://github.com/openshift/nodejs-ex
Track Build Output
oc logs -f bc/nodejs-ex
Existing image serves as source
OpenShift searches images in:
oc new-app redis
Application is built from OpenShift template
oc new-app cakephp-mysql-example
oc new-app -f example/ose-template.json
Integrated OpenShift templates
oc get templates -n openshift
Increase in the number of replicas of a Pod
oc scale --replicas=3 rc nodejs-ex
oc scale --replicas=3 dc nodejs-ex
Automatic scaling of pods
oc autoscale dc nodejs-ex --min=2 --max=5
Status of the HorizontalPodAutoscaler
oc get hpa all
manual rollout
oc rollout latest dc/ruby-ex
Rollback to previous deployment
oc rollout history dc/ruby-ex
oc rollback ruby-ex
How are application updates deployed?
N-1 compatibility!
When N-1 compatibility is unclear
Only one version of the application in operation!
Rolling and Recreate offer Hooks
rolling * pre * post
Recreate
configure readinessProbe and livenessProbe
readinessProbe
Pod is ready to accept traffic
livenessProbe
Pod is functional