Last login: Sun May 16 20:22:11 2021 from gateway
[root@master ~]# kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
busybox ClusterIP 10.1.138.149 <none> 80/TCP 5d16h
kubernetes ClusterIP 10.1.0.1 <none> 443/TCP 23d
my-nginx ClusterIP 10.1.97.159 <none> 80/TCP 6d2h
my-service ClusterIP 10.1.152.84 <none> 80/TCP 6d3h
[root@master ~]#
[root@master ~]# kubectl describe service my-nginx
Name: my-nginx
Namespace: default
Labels: <none>
Annotations: <none>
Selector: run=my-nginx
Type: ClusterIP
IP: 10.1.97.159
Port: <unset> 80/TCP
TargetPort: 80/TCP
Endpoints: 10.244.1.9:80,10.244.2.32:80
Session