How do i list the services on kubernetes?
-
$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 46d web-service NodePort 10.96.232.44 <none> 80:30862/TCP 2m
Here you can see the system service kubernetes and a web service using NodePort ServiceType that has a port mapping.
© Lightnetics 2024