Let's see what happens when we set a new image to the db Pod.
kubectl set image \ -f deploy/go-demo-2-db.yml \ db=mongo:3.4 \ --record
It'll take a while until the new image is pulled, so you might as well fetch yourself a coffee. Once you're back, we can describe the Deployment by checking the events it created.
kubectl describe \ -f deploy/go-demo-2-db.yml
The last few lines of the output are as follows:
... Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal ScalingReplicaSet 19m deployment-controller Scaled
up replica set go-demo-2-db-75fbcbb5cd to 1 Normal ScalingReplicaSet 5m deployment-controller Scaled
up replica set go-demo-2-db-f8d4b86ff to 1 Normal ScalingReplicaSet 0s deployment-controller Scaled...