

- 编辑器
https://www.katacoda.com/courses/kubernetes/playground

controlplane $ kubectl expose pod d1 --target-port 80 --type NodePortservice/d1 exposedcontrolplane $ kubectl get svcNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEd1 NodePort 10.103.81.35 <none> 80:30959/TCP 18skubernetes ClusterIP 10.96.0.1 <none> 443/TCP 34mcontrolplane $
