Articles → DOCKER → Create Deployment Command In Kubernetes
Create Deployment Command In Kubernetes
Purpose
Syntax
kubectl create deploy [deployment_name] --image=[image_name]
Prerequisite
snap install kubectl --classic
Example
Dry Run
kubectl create deploy [deployment_name] --image=[image_name] --dry-run=client -o yaml
Retrieve Deployment Information
kubectl get deployment [deployment_name]
kubectl get deployment [deployment_name] -o yaml
Scaling The Deployment
kubectl scale deploy [deployment_name] --replicas=[desired_replicas]
Update The Container Image In Deployment
kubectl set image deploy [deployment_name] [container_image_name]=[updated_image]
What Does Replica Mean?
What Is A Selector?