标签:node节点 dem ber 17. cto cluster RoCE ado run
kubectl run nginx --image=nginx --replicas=3[root@k8s-master ~]# kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.10.10.1 <none> 443/TCP 3h
[root@k8s-master ~]# kubectl expose deployment nginx --port=88 --target-port=80 --type=NodePort
service "nginx" exposed
[root@k8s-master ~]# kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.10.10.1 <none> 443/TCP 3h
nginx NodePort 10.10.10.86 <none> 88:35712/TCP 2s
[root@k8s-master ~]# kubectl get service nginx
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx NodePort 10.10.10.86 <none> 88:35712/TCP 21s
[root@k8s-master ~]#
node节点测试
标签:node节点 dem ber 17. cto cluster RoCE ado run
原文地址:http://blog.51cto.com/wsxxsl/2294079