Solution Deployments
- Check for replicasets:
kubectl get rs - Check for
deployments:kubectl get deployments - Check pods:
kubectl get pods - Check the image on a pod, using
kubectl describe pod <pod_name> - To create a deployment (useful for checking errors in your
yamlfile):kubectl create -f <deployment.yaml> - When using the
kindfield in ayamlfile, the following character should be capitalised asDeployment - Create an object with
kubectl create - Useful help command is
kubectl create deployment --help. - Deploy an image:
kubectl create deployment httpd-frontend --image=httpd:2.4-alpine --replicas=3 - Check
kubectl get deployafterwards.