Sunday, September 25, 2022

KUBERNETES COMMANDS

 minikube version 

kubectl version 


minikube start   #starts cluster 

kubectl cluster-info

kubectl get nodes

kubectl get pods

kubectl get services


kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1


kubectl proxy 



kubectl get pods -o  go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'


$export POD_NAME=$(kubectl get pods -o  go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')



kubectl get pods -o  go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'


No comments:

Post a Comment

useful links

  https://github.com/huggingface/cookbook/tree/main/notebooks/en  hugging face ai cookbooks  https://colab.research.google.com/github/huggin...