标签:ice png 应用 service img deploy targe inf ima
[root@k8s-master ~]# kubectl run nginx-deploy --image=nginx:1.14-alpine --port=80 --replicas=1
deployment "nginx-deploy" created
[root@k8s-master ~]# kubectl expose deployment nginx-deploy --name nginx --port=80 --target-port=80 --protocol=TCP ###target-port等于上图pod_port,--port等于service_port
service "nginx" exposed
[root@k8s-master ~]# kubectl run busybox-client --image=busybox --replicas=1 -it --restart=Never ###启动一个busybox pod ,作为客户端
If you don‘t see a command prompt, try pressing enter.
/ #
标签:ice png 应用 service img deploy targe inf ima
原文地址:https://www.cnblogs.com/shanhua-fu/p/10981283.html