- 编辑器
https://www.katacoda.com/courses/kubernetes/playground
controlplane $ kubectl expose pod d1 --target-port 80 --type NodePort
service/d1 exposed
controlplane $ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
d1 NodePort 10.103.81.35 <none> 80:30959/TCP 18s
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 34m
controlplane $