本地访问minikube的docker
eval $(minikube docker-env)
删除statefulset
kubectl delete statefulset web --cascade=false
扩容
kubectl scale deployments/kubernetes-bootcamp --replicas=4
进入pod内部
kubectl exec -it nginx-dbddb74b8-56bfz bash
2021-07-12 10:52:30
eval $(minikube docker-env)
kubectl delete statefulset web --cascade=false
kubectl scale deployments/kubernetes-bootcamp --replicas=4
kubectl exec -it nginx-dbddb74b8-56bfz bash