Kubernetes Deployment
- Deployments wrap up Pods and ReplicaSets into a package that is capable of deploying.
- Deployment gives us the ability to track the rollout of changes to our pod.
- Deployment ensure that only a specific number of pods can be down during an update
kubectl create deployment <deployment-name> –image=<image-name>
Task by trainer:-
- Create a deployment with name = httpd and image = httpd
- Create a mysql.yml file in /root directory to deploy the deployment.
Deployment name = mysqldb
Image = mysql:5.7