Difference between revisions of "Kubectl describe services"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | kubectl describe services | + | [[kubectl describe]] services |
kubectl describe service -A | kubectl describe service -A | ||
Latest revision as of 17:49, 15 February 2024
kubectl describe services kubectl describe service -A
kubectl describe service | grep Type
Examples[edit]
ClusterIP[edit]
kubectl describe services Name: kubernetes Namespace: default Labels: component=your-label provider=kubernetes Annotations: <none> Selector: <none> Type: ClusterIP IP Family Policy: SingleStack IP Families: IPv4 IP: 10.100.0.1 IPs: 10.100.0.1 Port: https 443/TCP TargetPort: 443/TCP Endpoints: 192.168.104.103:443,192.168.181.204:443 Session Affinity: None Events: <none>
.../... Endpoints: 10.2.1.89:3000 Session Affinity: None External Traffic Policy: Cluster Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal EnsuringLoadBalancer 9m17s service-controller Ensuring load balancer Normal EnsuredLoadBalancer 9m15s service-controller Ensured load balancer
LoadBalancer[edit]
Name: mylbinm Namespace: default Labels: app.kubernetes.io/instance=instance-name app.kubernetes.io/managed-by=Helm app.kubernetes.io/name=your-app-name app.kubernetes.io/version=your-tag-versoin helm.sh/chart=inm-dev-0.1.0 Annotations: <none> Selector: app.kubernetes.io/instance=instance-name,app.kubernetes.io/name=your-app-name Type: LoadBalancer IP Family Policy: SingleStack IP Families: IPv4 IP: 172.20.218.205 IPs: 172.20.218.205 LoadBalancer Ingress: a71b8bc0xxxxxx.us-east-2.elb.amazonaws.com Port: <unset> 3000/TCP TargetPort: 3000/TCP NodePort: <unset> 30057/TCP Endpoints: 10.33.1.97:3000 Session Affinity: None External Traffic Policy: Cluster Events: <none>
Related[edit]
kubectl expose deployment hello-world --type=LoadBalancer --name=my-service
See also[edit]
kubectl describe service
kubectl create service [ loadbalancer | clusterip | nodeport | extername ]
kind: Service
- Kubernetes services,
kubectl get services, kubectl describe service
,kubectl create service
[loadbalancer
|nodeport
|clusterip
|externalname ], kubectl expose
,headless service, service.beta.kubernetes.io
Advertising: