Difference between revisions of "Exposing an External IP Address to Access an Application in a Cluster"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
  
 
  [[kubectl get services]] my-service
 
  [[kubectl get services]] my-service
 +
NAME        TYPE          CLUSTER-IP      EXTERNAL-IP                                                              PORT(S)          AGE
 +
my-service  LoadBalancer  172.20.165.35  a44a5217784174123143443.us-east-1.elb.amazonaws.com  3000:31896/TCP  19s
  
  
 
+
== See also ==
{{K8s net}}
+
* {{K8s net}}

Revision as of 05:26, 14 March 2023

kubectl expose deployment hello-world --type=LoadBalancer --name=my-service
service/my-service exposed
kubectl get services my-service
NAME         TYPE           CLUSTER-IP      EXTERNAL-IP                                                              PORT(S)          AGE
my-service   LoadBalancer   172.20.165.35   a44a5217784174123143443.us-east-1.elb.amazonaws.com   3000:31896/TCP   19s


See also

Advertising: