sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f nginx-svc.yaml
service/nginx-svc created
sansae@sansaeAir15m2 k8s-lab-workspace % k get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 23h
nginx-svc ClusterIP 10.0.133.111 <none> 80/TCP 5s
sansae@sansaeAir15m2 k8s-lab-workspace % k describe svc nginx-svc
Name: nginx-svc
Namespace: default
Labels: app=myapp-svc
type=front-end
Annotations: <none>
Selector: type=front-end
Type: ClusterIP
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.0.133.111
IPs: 10.0.133.111
Port: <unset> 80/TCP
TargetPort: 80/TCP
Endpoints: 10.244.0.75:80,10.244.0.76:80,10.244.0.77:80
Session Affinity: None
Events: <none>
|