1 2 |
kubectl run aks-nginx <span class="nt">--image</span><span class="o">=</span>nginx kubectl expose deploy aks-nginx <span class="nt">--port</span><span class="o">=</span>80 <span class="nt">--type</span><span class="o">=</span>LoadBalancer |
1 2 3 4 5 6 |
yuta@DESKTOP-R0C7EKE:~$ kubectl get service aks-nginx NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) aks-nginx LoadBalancer 10.0.176.228 52.142.26.3 80:32012/TCP AGE 78s |