In this section, we will create the resource configurations required to deploy your applications in Kubernetes. You will learn how to create a Kubernetes manifest, deploy a workload, and roll out a new version using Yet Another Markup Language (YAML) files.
Getting ready
Before you start, clone the repository of the examples used in this chapter:
$ git clone https://github.com/k8sdevopscookbook/src.git
Make sure you have a Kubernetes cluster ready and kubectl configured to manage the cluster resources.
How to do it…
This section is further divided into the following subsections to ease the process:
- Creating a Deployment
- Verifying a Deployment
- Editing a Deployment
- Rolling back a Deployment
- Deleting a Deployment
Creating a Deployment
This recipe will take you through instructions to create a Deployment using a manifest file that keeps a set of pods running. Deployments are used to declare how many replicas of a pod should be running. A Deployment...