Skip to content

Latest commit

 

History

History

task-019-deployment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
  • Create a deployment nginx without using yaml file
kubectl create deployment httpd-frontend --image=nginx
  • Scale the deployment to 3 replicas without using yaml
$ kubectl scale deployment httpd-frontend --replicas=3
deployment.apps/httpd-frontend scaled
  • Create a yaml deployment file of nginx
$ kubectl create deployment httpd-frontend --image=nginx --dry-run=client -o yaml > nginx-deployment.yaml