We are going to deploy an nginx app with 2 versions, blue and green. We will mount the index.html to the deployments to show which version we are looking at. Then we will create a service with labels pointing to both versions, and control the flow of traffic between the blue version to the green version through pod replicas in the deployment.
Create the demo namespace
k create ns demo
k config set-context $(k config current-context) --namespace=demo