Main Menu

Search

KUBERNETES: Kubectl Command To View Kube-DNS Service Configuration

Kubectl Command To View Kube-DNS Service Configuration


Below kubectl command can be used to list kube-dns service configuration.


kubectl describe svc -n kube-system kube-dns


Below is sample output.


$ kubectl describe svc -n kube-system kube-dns

Name:              kube-dns

Namespace:         kube-system

Labels:            k8s-app=kube-dns

                   kubernetes.io/cluster-service=true

                   kubernetes.io/name=CoreDNS

Annotations:       prometheus.io/port: 9153

                   prometheus.io/scrape: true

Selector:          k8s-app=kube-dns

Type:              ClusterIP

IP Family Policy:  SingleStack

IP Families:       IPv4

IP:                10.XX.0.10

IPs:               10.XX.0.10

Port:              dns  53/UDP

TargetPort:        53/UDP

Endpoints:         10.244.0.2:53,10.244.0.3:53

Port:              dns-tcp  53/TCP

TargetPort:        53/TCP

Endpoints:         10.244.0.2:53,10.244.0.3:53

Port:              metrics  9153/TCP

TargetPort:        9153/TCP

Endpoints:         10.244.0.2:9153,10.244.0.3:9153

Session Affinity:  None

Events:            <none>

No comments:

Post a Comment