Update a K8s Service

MD
R
Markdown

One of the core philosophies behind K8s is rolling updates and reverts. Recap: a) Pods are managed and deployed by REPLICATION CONTROLLERS b) RC's are exposed to outside via SERVICES Pods have labels and Services also have labels and labels between Service and Pods must match (ie, you can't have label 'canary' on Service and not on the Pods which are being proxied through that service). By switching Labels on Service it will point to different Pods (ie, V1 == V1, V2 == V2). Services get an IP, DNS and Port and they don't change, ie. written on rocks.

Update yml tags for new version

Load yml into apiServer

kubectl rolling-update -f updaterc.yml

Created on 5/23/2018