We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to debug a coredns pod, I get a weird error.
cdebug --version cdebug version 0.0.18 (built: 2024-04-13T13:57:11Z commit: Homebrew) kubectl describe pod -n kube-system coredns-7db6d8ff4d-ll6lj Name: coredns-7db6d8ff4d-ll6lj Namespace: kube-system Priority: 2000000000 Priority Class Name: system-cluster-critical Service Account: coredns Node: docker-desktop/192.168.65.3 Start Time: Mon, 04 Nov 2024 17:17:13 +0000 Labels: k8s-app=kube-dns pod-template-hash=7db6d8ff4d Annotations: <none> Status: Running IP: 10.1.22.196 IPs: IP: 10.1.22.196 Controlled By: ReplicaSet/coredns-7db6d8ff4d Containers: coredns: Container ID: docker://64a62a6a729f438ea8b666ae50b17f7cfec16f4bc50065893cf8eaf5699eaaca Image: registry.k8s.io/coredns/coredns:v1.11.1 Image ID: docker://sha256:2437cf762177702dec2dfe99a09c37427a15af6d9a57c456b65352667c223d93 Ports: 53/UDP, 53/TCP, 9153/TCP Host Ports: 0/UDP, 0/TCP, 0/TCP Args: -conf /etc/coredns/Corefile State: Running Started: Mon, 04 Nov 2024 17:17:14 +0000 Ready: True Restart Count: 0 Limits: memory: 170Mi Requests: cpu: 100m memory: 70Mi Liveness: http-get http://:8080/health delay=60s timeout=5s period=10s #success=1 #failure=5 Readiness: http-get http://:8181/ready delay=0s timeout=1s period=10s #success=1 #failure=3 Environment: <none> Mounts: /etc/coredns from config-volume (ro) /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-sx6bm (ro) Conditions: Type Status PodReadyToStartContainers True Initialized True Ready True ContainersReady True PodScheduled True Volumes: config-volume: Type: ConfigMap (a volume populated by a ConfigMap) Name: coredns Optional: false kube-api-access-sx6bm: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: Burstable Node-Selectors: kubernetes.io/os=linux Tolerations: CriticalAddonsOnly op=Exists node-role.kubernetes.io/control-plane:NoSchedule node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 15s default-scheduler Successfully assigned kube-system/coredns-7db6d8ff4d-ll6lj to docker-desktop Normal Pulled 14s kubelet Container image "registry.k8s.io/coredns/coredns:v1.11.1" already present on machine Normal Created 14s kubelet Created container coredns Normal Started 14s kubelet Started container coredns [max.allan@Maxs-MacBook-Pro ~]$ cdebug exec -it -n kube-system pod/coredns-7db6d8ff4d-ll6lj/coredns Debugger container name: cdebug-2378692e Starting debugger container... Waiting for debugger container... sh: can't open no: no such file cdebug: Debugger container "cdebug-2378692e" terminated: Error - (exit code: 1).
Looking at the describe again, I see a new ephemeral container:
describe
Ephemeral Containers: cdebug-2378692e: Container ID: docker://5cf09fc29a82191d25ae394e4ced9c1042aca82004b01e609cb5bf31b6d64f4f Image: docker.io/library/busybox:musl Image ID: docker-pullable://busybox@sha256:e95352f7c5174c96ffc684150c9d08fc3ba26ac2f37c613c398fd369e15a0789 Port: <none> Host Port: <none> Command: sh -c set -eu export CDEBUG_ROOTFS=/ if [ "${HOME:-/}" != "/" ]; then ln -s /proc/<no value>/root/ ${HOME}target-rootfs fi # TODO: Add target container's PATH to the user's PATH exec sh State: Terminated Reason: Error Exit Code: 1
Looks like something isn't replacing a <no value> template with a real value.
<no value>
Any ideas?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I try to debug a coredns pod, I get a weird error.
Looking at the
describe
again, I see a new ephemeral container:Looks like something isn't replacing a
<no value>
template with a real value.Any ideas?
The text was updated successfully, but these errors were encountered: