- Create a deployment named nginx from bitnami/nginx image from dockerhub with 3 copies running on the cluster
Solution
- Create a deployment named nginx from bitnami/nginx image from dockerhub with 3 copies running on the cluster
oc run nginx --image=bitnami/nginx --restart=Always --replicas=3
oc expose dc nginx --port=8080
oc expose service nginx
curl $(oc get route nginx -o jsonpath='{.spec.host}')
oc idle service nginx
oc scale --replicas=3 dc nginx
curl $(oc get route nginx -o jsonpath='{.spec.host}')