15 Automating application updates with Deployments
This chapter covers
- Deploying stateless workloads with the Deployment object
- Horizontal scaling of Deployments
- How to update workloads declaratively
- Preventing rollouts of faulty workloads
- Various deployment strategies
In the previous chapter, you learned how to deploy pods via ReplicaSets. However, workloads are rarely deployed this way because ReplicaSets don’t provide the functionality for seamless pod updates. This functionality is provided by the Deployment object type. By the end of this chapter, each of the three services in the Kiada suite will have its own Deployment object.
Before we begin, make sure that the Pods, Services, and other objects of the Kiada suite are present in your cluster. If you followed the exercises in the previous chapter, they should already be there. If not, you can create them by establishing the kiada namespace and applying all the manifests in the Chapter15/SETUP/ directory with the following command:
$ kubectl apply -f SETUP -R
NOTE
The code files for this chapter are available at https://github.com/luksa/kubernetes-in-action-2nd-edition/tree/master/Chapter15.