Skip to content

Sandhu-Sahil/yaml-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Commands

kubectl apply -f nginx-deployment.yaml
kubectl get deployment
kubectl apply -f nginx-service.yaml
kubectl get service
kubectl get pod
get more information about pod
kubectl describe pod {pod-name}
kubectl get pod -o wide
kubectl describe service {service-name}

debugging

get more information in yaml file

kubectl get deployment nginx-deployment -o yaml

save it in a yaml file:

kubectl get deployment nginx-deployment -o yaml > nginx-deployment-result.yaml

delete yaml

kubectl delete -f nginx-deployment.yaml
kubectl delete -f nginx-service.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published