minikube ssh
kubectl exec -it nginx sh
kubectl delete -f
kubectl create -f
kubectl describe nginx # nginx is pod name
kubectl scale
# 创建pod的方式:
1. 直接创建pod
2. 通过ReplicationController 或者 Replicaset
3. Deployment
4. Service # kubectl expose deployment <service name>
kubectl get node/pods/rc/rs/deployment/svc -o wide
# 通过ReplicationController or ReplicaSet创建pod在pod terminate后会自动拉起新的pod, 但是重新拉起后ip会变化,service可以保证ip不变化
原文:https://www.cnblogs.com/buxizhizhoum/p/12274834.html