Open manuel-leveugle opened 7 months ago
What endpoints does the kube-dns service have?
Thank you for your quick response, here are the 2 yaml, before installation -> after installation
---
# Before:
apiVersion: v1
kind: Service
metadata:
annotations:
meta.helm.sh/release-name: coredns
meta.helm.sh/release-namespace: kube-system
prometheus.io/port: "9153"
prometheus.io/scrape: "true"
creationTimestamp: "2024-03-21T10:31:05Z"
labels:
app.kubernetes.io/managed-by: Helm
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: CoreDNS
name: kube-dns
namespace: kube-system
resourceVersion: "684"
uid: d9cf0902-5028-49ea-b4d4-7f6093c2f0d1
spec:
clusterIP: 10.0.0.10
clusterIPs:
- 10.0.0.10
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: dns
port: 53
protocol: UDP
targetPort: 53
- name: dns-tcp
port: 53
protocol: TCP
targetPort: 53
- name: metrics
port: 9153
protocol: TCP
targetPort: 9153
selector:
k8s-app: kube-dns
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
---
# After:
apiVersion: v1
kind: Service
metadata:
annotations:
meta.helm.sh/release-name: coredns
meta.helm.sh/release-namespace: kube-system
prometheus.io/port: "9153"
prometheus.io/scrape: "true"
creationTimestamp: "2024-03-21T10:31:05Z"
labels:
app.kubernetes.io/instance: coredns
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: coredns
helm.sh/chart: coredns-1.29.0
helm.toolkit.fluxcd.io/name: coredns
helm.toolkit.fluxcd.io/namespace: helm-data
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: CoreDNS
name: kube-dns
namespace: kube-system
resourceVersion: "3204"
uid: d9cf0902-5028-49ea-b4d4-7f6093c2f0d1
spec:
clusterIP: 10.0.0.10
clusterIPs:
- 10.0.0.10
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: udp-53
port: 53
protocol: UDP
targetPort: 53
- name: dns-tcp
port: 53
protocol: TCP
targetPort: 53
- name: metrics
port: 9153
protocol: TCP
targetPort: 9153
selector:
app.kubernetes.io/instance: coredns
app.kubernetes.io/name: coredns
k8s-app: kube-dns
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
---
I was referring to the endpoints, not the service spec.
Try something like: kubectl get ep -n kube-system kube-dns
and see if it matches the coredns
pod IP addresses
Oh sorry, it seems to match
---
# Endpoint
- addresses:
- ip: 10.85.0.11
nodeName: main
targetRef:
kind: Pod
name: coredns-5fc4d8d869-vs428
namespace: kube-system
- ip: 10.85.0.8
nodeName: worker-001
targetRef:
kind: Pod
name: coredns-5fc4d8d869-cdtzr
namespace: kube-system
ports:
- name: dns-tcp
port: 53
protocol: TCP
- name: metrics
port: 9153
protocol: TCP
- name: udp-53
port: 53
protocol: UDP
---
metadata:
name: coredns-5fc4d8d869-vs428
podIP: 10.85.0.11
podIPs:
- ip: 10.85.0.11
---
metadata:
name: coredns-5fc4d8d869-cdtzr
podIP: 10.85.0.8
podIPs:
- ip: 10.85.0.8
---
Edit1: I have the impression that the error does not come from coredns, but from the tigera-calico installation. I'm looking, can we pause this issue, I'll close it if so.
I have something similar to AWS, I carried out the installation, and sometimes I start to experience timeouts, did you manage to find out anything?
[ERROR] plugin/errors: 2 metadata.google.internal. AAAA: read udp 10.72.35.115:45212->10.72.32.2:53: i/o timeout
Hello all,
I have fresh install of kubeadm cluster
I'm trying to control coredns with this chart helm, here are actions performed:
Here are values:
After install, i got this error:
Does anyone have an idea to resolve this?