作者:顺丰-03_457 | 来源:互联网 | 2023-09-17 12:54
1.存活探针HTTPGET|TCP|Exec2.ReplicationController标签选择器、副本个数、pod模板3.修改pod模板kubectleditrckubia
1.存活探针 HTTP GET | TCP | Exec
2.ReplicationController 标签选择器、副本个数、pod模板
3.修改pod模板 kubectl edit rc kubia
4.水平缩放 kubectl scale rc kubia --replicas=10
5.删除一个rc kubectl delete rc kubia --cascade=false
6.查看ReplicaSet kubectl get rs | kubectl describe rs
7.删除rs kubectl delete rs kubia
8.查看DaemonSet kubectl get ds
9.添加、覆盖节点标签 kubectl label node minikube disk=ssd | kubectl label node minikube disk=hdd --overwrite
10.查看Job kubectl get jobs
10.CronJob
11.查看Service kubectl get svc
12.在运行的容器中执行命令 kubectl exec kubia-bn6vc -- curl -s http://10.104.118.120 | kubectl exec kubia-bn6vc env
13.服务发现 环境变量、DNS、FQDN
14.查看Endpoint kubectl get endpoints kubia