April 2018
Intermediate to advanced
468 pages
14h 34m
English
The Hue platform is a large and ever-evolving system. You need to upgrade constantly. Deployments can be updated to roll out updates in a painless manner. You change the pod template to trigger a rolling update which is fully managed by Kubernetes.
Currently, all the pods are running with version 3.0:
> kubectl get pods -o json | jq .items[0].spec.containers[0].image "3.0"
Let's update the deployment to upgrade to version 4.0. Modify the image version in the deployment file. Don't modify labels; it will cause an error. Typically, you modify the image and some related metadata in annotations. Then we can use the apply command to upgrade the version:
> kubectl apply -f hue-learn-deployment.yaml deployment "hue-learn" ...
Read now
Unlock full access