In part 21 you fixed Pods that would not start. This part covers what breaks around a healthy Pod: a Service that sends traffic nowhere, a name that does not resolve, an object that refuses to go away, a node that drops out, and a Pod the kubelet throws off its node. You will also meet kubectl debug, which gives you a shell next to a container that has none. Every failure here was caused on purpose and fixed on a two-node kind cluster (kind v0.33.0, node image v1.37.0) with kubectl v1.37.2. You need the cluster from part 3 with one worker node, and the k8s-from-zero namespace.
What you will build
You will deploy one small web app, break it in five different ways, and read the evidence each time before you fix it. The habit to build is the same every time: follow the request or the object step by step, and ask the API what it thinks at each step. For a Service, that path has four stops.
A Service with no endpoints answers nothing
A Service finds its Pods with a label selector (part 8). If the selector matches no Pod, the Service still exists and still has a ClusterIP, but its EndpointSlice is empty, and every connection fails. The official Debug Services page walks through the same checks in more detail.
Save this as web.yaml. It has two mistakes on purpose: a typo in the selector, and a targetPort that nginx does not listen on.
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: k8s-from-zero
labels:
app.kubernetes.io/name: web
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: web
template:
metadata:
labels:
app.kubernetes.io/name: web
spec:
containers:
- name: web
image: nginx:1.29-alpine
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: web
namespace: k8s-from-zero
spec:
selector:
app.kubernetes.io/name: wbe # typo on purpose
ports:
- port: 80
targetPort: 8080 # wrong on purpose: nginx listens on 80
Try it: five failures and their fixes
- Apply the app, start a client Pod, and call the Service:
kubectl apply -f web.yaml
kubectl run client -n k8s-from-zero --image=busybox:1.37 -- sleep 3600
kubectl rollout status deployment/web -n k8s-from-zero --timeout=90s
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webExplain this command
kubectl apply -f web.yaml
kubectl run client -n k8s-from-zero --image=busybox:1.37 -- sleep 3600
kubectl rollout status deployment/web -n k8s-from-zero --timeout=90s
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.applyApply a configuration to a resource by file name or stdin. The apply docs say the resource is created if it does not exist yet. JSON and YAML are accepted.-fShort form of --filename. The file, directory or URL that contains the configuration to apply.web.yamlThe file named by --filename. apply creates the objects or updates them to match this file.
Explain this command
kubectl apply -f web.yaml
kubectl run client -n k8s-from-zero --image=busybox:1.37 -- sleep 3600
kubectl rollout status deployment/web -n k8s-from-zero --timeout=90s
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.runCreate and run a particular image in a pod. The run docs say this is intended for simple development and debug use.clientThe Pod name passed to kubectl run.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--image=busybox:1.37The container image, set here to busybox:1.37.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.sleepShell. Waits the given number of seconds.3600How many seconds sleep waits before the next command runs.
Explain this command
kubectl apply -f web.yaml
kubectl run client -n k8s-from-zero --image=busybox:1.37 -- sleep 3600
kubectl rollout status deployment/web -n k8s-from-zero --timeout=90s
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.rolloutThe command group for rollout actions.statusShow the status of the rollout. By default it watches the latest rollout until it is done. You can pass --watch=false if you do not want to wait.deployment/webThe resource written as type/name: deployment/web.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--timeout=90sHow long to wait before giving up. This command passes 90s.
Explain this command
kubectl apply -f web.yaml
kubectl run client -n k8s-from-zero --image=busybox:1.37 -- sleep 3600
kubectl rollout status deployment/web -n k8s-from-zero --timeout=90s
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.wgetA small HTTP client in the busybox image. It fetches the URL that follows.-qO-Quiet mode, and write the response to standard output (-O -) instead of a file.-TWith wget, the network timeout in seconds.3Give up after 3 seconds.http://webThe URL the command requests.
deployment.apps/web created
service/web created
pod/client created
...
deployment "web" successfully rolled out
wget: can't connect to remote host (10.96.129.138): Connection refused
command terminated with exit code 1
The name resolved (wget found an IP), so DNS is fine. The next stop is endpoints:
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl describe service web -n k8s-from-zero
kubectl get pods -n k8s-from-zero --show-labelsExplain this command
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl describe service web -n k8s-from-zero
kubectl get pods -n k8s-from-zero --show-labelskubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.endpointsliceThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-lShort form of --selector. A label query. The get docs say it supports '=', '==', '!=', 'in' and 'notin', and that matching objects must satisfy every constraint.kubernetes.io/service-name=webThe label selector passed to -l. It keeps only the objects whose labels match this query.
Explain this command
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl describe service web -n k8s-from-zero
kubectl get pods -n k8s-from-zero --show-labelskubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.describeShow details of a specific resource or group of resources. The describe docs say this includes related resources such as events or controllers.serviceThe resource type.webThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.
Explain this command
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl describe service web -n k8s-from-zero
kubectl get pods -n k8s-from-zero --show-labelskubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.podsThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--show-labelsAdd a LABELS column that shows every label on each object.
NAME ADDRESSTYPE PORTS ENDPOINTS AGE
web-hbx96 IPv4 <unset> <unset> 1s
...
Selector: app.kubernetes.io/name=wbe
...
TargetPort: 8080/TCP
Endpoints:
...
NAME READY STATUS RESTARTS AGE LABELS
client 1/1 Running 0 2s run=client
web-86f79b74d9-f5vdk 1/1 Running 0 2s app.kubernetes.io/name=web,pod-template-hash=86f79b74d9
web-86f79b74d9-tkwg6 1/1 Running 0 2s app.kubernetes.io/name=web,pod-template-hash=86f79b74d9
ENDPOINTS <unset> and a selector of wbe against Pods labelled web: that is the bug. Fix the selector:
kubectl patch service web -n k8s-from-zero -p '{"spec":{"selector":{"app.kubernetes.io/name":"web"}}}'
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webExplain this command
kubectl patch service web -n k8s-from-zero -p '{"spec":{"selector":{"app.kubernetes.io/name":"web"}}}'
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.patchUpdate fields of a resource using a strategic merge patch, a JSON merge patch, or a JSON patch. The patch docs say JSON and YAML are accepted.serviceThe resource type.webThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-pShort form of --patch. The patch to apply, written here as JSON.'{"spec":{"selector":{"app.kubernetes.io/name":"web"}}}'The patch document, written as JSON. Only the fields it names are changed.
Explain this command
kubectl patch service web -n k8s-from-zero -p '{"spec":{"selector":{"app.kubernetes.io/name":"web"}}}'
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.endpointsliceThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-lShort form of --selector. A label query. The get docs say it supports '=', '==', '!=', 'in' and 'notin', and that matching objects must satisfy every constraint.kubernetes.io/service-name=webThe label selector passed to -l. It keeps only the objects whose labels match this query.
Explain this command
kubectl patch service web -n k8s-from-zero -p '{"spec":{"selector":{"app.kubernetes.io/name":"web"}}}'
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.wgetA small HTTP client in the busybox image. It fetches the URL that follows.-qO-Quiet mode, and write the response to standard output (-O -) instead of a file.-TWith wget, the network timeout in seconds.3Give up after 3 seconds.http://webThe URL the command requests.
service/web patched
NAME ADDRESSTYPE PORTS ENDPOINTS AGE
web-hbx96 IPv4 8080 10.244.1.2,10.244.1.3 9s
wget: can't connect to remote host (10.96.129.138): Connection refused
command terminated with exit code 1
- Endpoints exist now, and the error is the same. Look at the PORTS column: 8080. Ask a Pod which port it really listens on, and test the Pod directly on its own IP:
kubectl exec -n k8s-from-zero deploy/web -- netstat -tln
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://$(kubectl get pods -n k8s-from-zero -l app.kubernetes.io/name=web -o jsonpath='{.items[0].status.podIP}'):80 | head -4Explain this command
kubectl exec -n k8s-from-zero deploy/web -- netstat -tln
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://$(kubectl get pods -n k8s-from-zero -l app.kubernetes.io/name=web -o jsonpath='{.items[0].status.podIP}'):80 | head -4kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.deploy/webThe resource written as type/name: deploy/web.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.netstatPrint network connections and listening ports. The lesson uses it inside a container.-tlnWith netstat: TCP sockets (-t) that are listening (-l), with numeric addresses and ports (-n).
Explain this command
kubectl exec -n k8s-from-zero deploy/web -- netstat -tln
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://$(kubectl get pods -n k8s-from-zero -l app.kubernetes.io/name=web -o jsonpath='{.items[0].status.podIP}'):80 | head -4kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.wgetA small HTTP client in the busybox image. It fetches the URL that follows.-qO-Quiet mode, and write the response to standard output (-O -) instead of a file.-TWith wget, the network timeout in seconds.3Give up after 3 seconds.http://$(kubectl get pods -n k8s-from-zero -l app.kubernetes.io/name=web -o jsonpath='{.items[0].status.podIP}'):80The URL to fetch. The $(...) part prints the IP of the first web Pod with jsonpath, so the request goes straight to the Pod and skips the Service.|A shell pipe. The output of the command on the left becomes the input of the command on the right.headShell. Print the first lines of its input.-4How many lines from the start of the input head should print.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 :::80 :::* LISTEN
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
The Pod answers on port 80, the Service sends to 8080. Point targetPort at 80:
kubectl patch service web -n k8s-from-zero --type=json -p '[{"op":"replace","path":"/spec/ports/0/targetPort","value":80}]'
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webExplain this command
kubectl patch service web -n k8s-from-zero --type=json -p '[{"op":"replace","path":"/spec/ports/0/targetPort","value":80}]'
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.patchUpdate fields of a resource using a strategic merge patch, a JSON merge patch, or a JSON patch. The patch docs say JSON and YAML are accepted.serviceThe resource type.webThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--type=jsonThe patch type. json is a JSON patch document.-pShort form of --patch. The patch to apply, written here as JSON.'[{"op":"replace","path":"/spec/ports/0/targetPort","value":80}]'The patch document, written as JSON. Only the fields it names are changed.
Explain this command
kubectl patch service web -n k8s-from-zero --type=json -p '[{"op":"replace","path":"/spec/ports/0/targetPort","value":80}]'
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://webkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.wgetA small HTTP client in the busybox image. It fetches the URL that follows.-qO-Quiet mode, and write the response to standard output (-O -) instead of a file.-TWith wget, the network timeout in seconds.3Give up after 3 seconds.http://webThe URL the command requests.
service/web patched
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
...
One honest detail: our first wget right after the patch still got Connection refused, and the same command three seconds later worked. kube-proxy needs a moment to program each node, so wait a second before you decide a fix did not work.
- DNS. Every Pod gets a
/etc/resolv.confthat points at the cluster DNS Service and lists search domains for its own namespace. The DNS debugging guide starts with the same three checks: the client’s resolv.conf, a lookup, and the CoreDNS Pods.
kubectl exec -n k8s-from-zero client -- cat /etc/resolv.conf
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.local
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.defaultExplain this command
kubectl exec -n k8s-from-zero client -- cat /etc/resolv.conf
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.local
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.defaultkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.catPrint the contents of a file./etc/resolv.confThe file path printed by cat inside the container.
Explain this command
kubectl exec -n k8s-from-zero client -- cat /etc/resolv.conf
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.local
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.defaultkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.nslookupA DNS lookup tool in the busybox image. It asks the cluster DNS server for the name that follows.web.k8s-from-zero.svc.cluster.localThe Service's full DNS name: service.namespace.svc.cluster.local.
Explain this command
kubectl exec -n k8s-from-zero client -- cat /etc/resolv.conf
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.local
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.defaultkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.wgetA small HTTP client in the busybox image. It fetches the URL that follows.-qO-Quiet mode, and write the response to standard output (-O -) instead of a file.-TWith wget, the network timeout in seconds.3Give up after 3 seconds.http://web.defaultThe URL the command requests.
search k8s-from-zero.svc.cluster.local svc.cluster.local cluster.local
nameserver 10.96.0.10
options ndots:5
Server: 10.96.0.10
Address: 10.96.0.10:53
Name: web.k8s-from-zero.svc.cluster.local
Address: 10.96.129.138
wget: bad address 'web.default'
command terminated with exit code 1
bad address means the name did not resolve, which is different from Connection refused, where the name resolved and nothing answered. Here the cause is the namespace: web.default asks for a Service web in default, and ours lives in k8s-from-zero. Use the full name <service>.<namespace>.svc.cluster.local when you test. busybox nslookup with a short name also tries every search domain and prints an NXDOMAIN line for each one that misses, even when the lookup succeeds, so the full name gives cleaner output.
Now break DNS for the whole cluster by scaling CoreDNS to zero (do this only on your own lab cluster):
kubectl scale deployment coredns -n kube-system --replicas=0
kubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.k8s-from-zero
kubectl exec -n k8s-from-zero client -- nslookup -timeout=2 web.k8s-from-zero.svc.cluster.localExplain this command
kubectl scale deployment coredns -n kube-system --replicas=0
kubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.k8s-from-zero
kubectl exec -n k8s-from-zero client -- nslookup -timeout=2 web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.scaleSet a new size for a deployment, replica set, replication controller, or stateful set.deploymentThe resource type.corednsThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.kube-systemThe namespace name.--replicas=0The new desired number of replicas. The scale command says --replicas is required.
Explain this command
kubectl scale deployment coredns -n kube-system --replicas=0
kubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.k8s-from-zero
kubectl exec -n k8s-from-zero client -- nslookup -timeout=2 web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.endpointsliceThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.kube-systemThe namespace name.-lShort form of --selector. A label query. The get docs say it supports '=', '==', '!=', 'in' and 'notin', and that matching objects must satisfy every constraint.kubernetes.io/service-name=kube-dnsThe label selector passed to -l. It keeps only the objects whose labels match this query.
Explain this command
kubectl scale deployment coredns -n kube-system --replicas=0
kubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.k8s-from-zero
kubectl exec -n k8s-from-zero client -- nslookup -timeout=2 web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.wgetA small HTTP client in the busybox image. It fetches the URL that follows.-qO-Quiet mode, and write the response to standard output (-O -) instead of a file.-TWith wget, the network timeout in seconds.3Give up after 3 seconds.http://web.k8s-from-zeroThe URL the command requests.
Explain this command
kubectl scale deployment coredns -n kube-system --replicas=0
kubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns
kubectl exec -n k8s-from-zero client -- wget -qO- -T 3 http://web.k8s-from-zero
kubectl exec -n k8s-from-zero client -- nslookup -timeout=2 web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.nslookupA DNS lookup tool in the busybox image. It asks the cluster DNS server for the name that follows.-timeout=2With busybox nslookup, wait at most 2 seconds for an answer.web.k8s-from-zero.svc.cluster.localThe Service's full DNS name: service.namespace.svc.cluster.local.
deployment.apps/coredns scaled
NAME ADDRESSTYPE PORTS ENDPOINTS AGE
kube-dns-gq9wr IPv4 <unset> <unset> 3m9s
wget: bad address 'web.k8s-from-zero'
command terminated with exit code 1
;; connection timed out; no servers could be reached
nslookup: write to '10.96.0.10': Connection refused
command terminated with exit code 1
The kube-dns Service has no endpoints, the same failure as step 1, one level down. Scale CoreDNS back and check the lookup again:
kubectl scale deployment coredns -n kube-system --replicas=2
kubectl rollout status deployment/coredns -n kube-system --timeout=90s
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.localExplain this command
kubectl scale deployment coredns -n kube-system --replicas=2
kubectl rollout status deployment/coredns -n kube-system --timeout=90s
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.scaleSet a new size for a deployment, replica set, replication controller, or stateful set.deploymentThe resource type.corednsThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.kube-systemThe namespace name.--replicas=2The new desired number of replicas. The scale command says --replicas is required.
Explain this command
kubectl scale deployment coredns -n kube-system --replicas=2
kubectl rollout status deployment/coredns -n kube-system --timeout=90s
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.rolloutThe command group for rollout actions.statusShow the status of the rollout. By default it watches the latest rollout until it is done. You can pass --watch=false if you do not want to wait.deployment/corednsThe resource written as type/name: deployment/coredns.-nShort form of --namespace. If present, the namespace scope for this CLI request.kube-systemThe namespace name.--timeout=90sHow long to wait before giving up. This command passes 90s.
Explain this command
kubectl scale deployment coredns -n kube-system --replicas=2
kubectl rollout status deployment/coredns -n kube-system --timeout=90s
kubectl exec -n k8s-from-zero client -- nslookup web.k8s-from-zero.svc.cluster.localkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.clientThe object name.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.nslookupA DNS lookup tool in the busybox image. It asks the cluster DNS server for the name that follows.web.k8s-from-zero.svc.cluster.localThe Service's full DNS name: service.namespace.svc.cluster.local.
deployment.apps/coredns scaled
...
deployment "coredns" successfully rolled out
Server: 10.96.0.10
Address: 10.96.0.10:53
Name: web.k8s-from-zero.svc.cluster.local
Address: 10.96.129.138
- An object stuck in Terminating. A finalizer is a name in
metadata.finalizersthat tells the API server: do not remove this object until someone takes this name off the list. Controllers use finalizers to clean up outside resources first, such as a cloud disk or a load balancer. When the controller is gone or broken, the object waits forever.
Save this as stuck.yaml. No controller in your cluster owns the name example.com/cleanup, so nothing will ever remove it:
apiVersion: v1
kind: ConfigMap
metadata:
name: stuck
namespace: k8s-from-zero
finalizers:
- example.com/cleanup # nothing in this cluster will ever remove it
data:
note: "I wait for a controller that does not exist"
kubectl apply -f stuck.yaml
timeout 10 kubectl delete configmap stuck -n k8s-from-zero; echo exit=$?
kubectl get configmap stuck -n k8s-from-zero -o jsonpath='{.metadata.deletionTimestamp}{" "}{.metadata.finalizers}{"\n"}'Explain this command
kubectl apply -f stuck.yaml
timeout 10 kubectl delete configmap stuck -n k8s-from-zero; echo exit=$?
kubectl get configmap stuck -n k8s-from-zero -o jsonpath='{.metadata.deletionTimestamp}{" "}{.metadata.finalizers}{"\n"}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.applyApply a configuration to a resource by file name or stdin. The apply docs say the resource is created if it does not exist yet. JSON and YAML are accepted.-fShort form of --filename. The file, directory or URL that contains the configuration to apply.stuck.yamlThe file named by --filename. apply creates the objects or updates them to match this file.
Explain this command
kubectl apply -f stuck.yaml
timeout 10 kubectl delete configmap stuck -n k8s-from-zero; echo exit=$?
kubectl get configmap stuck -n k8s-from-zero -o jsonpath='{.metadata.deletionTimestamp}{" "}{.metadata.finalizers}{"\n"}'timeoutRun a command and stop it after the given number of seconds.10Stop the command after 10 seconds. A finalizer keeps the ConfigMap, so the delete would otherwise wait for it indefinitely.kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.deleteDelete resources by file names, stdin, resources and names, or by resources and label selector.configmapThe resource type.stuckThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.
Explain this command
kubectl apply -f stuck.yaml
timeout 10 kubectl delete configmap stuck -n k8s-from-zero; echo exit=$?
kubectl get configmap stuck -n k8s-from-zero -o jsonpath='{.metadata.deletionTimestamp}{" "}{.metadata.finalizers}{"\n"}'echoPrint exit= and the exit status of the command before it.exit=$?The text to print. $? is the exit status of the last command; timeout returns 124 when it had to stop the command.
Explain this command
kubectl apply -f stuck.yaml
timeout 10 kubectl delete configmap stuck -n k8s-from-zero; echo exit=$?
kubectl get configmap stuck -n k8s-from-zero -o jsonpath='{.metadata.deletionTimestamp}{" "}{.metadata.finalizers}{"\n"}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.configmapThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.stuckThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.jsonpath='{.metadata.deletionTimestamp}{" "}{.metadata.finalizers}{"\n"}'A jsonpath output format. The get docs say jsonpath prints the fields the expression selects. The lesson uses this path to print the fields named in the command.
configmap/stuck created
configmap "stuck" deleted from k8s-from-zero namespace
exit=124
2026-11-10T21:26:49Z ["example.com/cleanup"]
kubectl printed deleted and then waited until timeout stopped it (exit code 124). The object is still there with a deletionTimestamp. In a real cluster, first find out which controller owns the finalizer and why it is stuck; removing the finalizer by hand skips that controller’s cleanup. Here we know nobody owns it, so remove it:
kubectl patch configmap stuck -n k8s-from-zero --type=merge -p '{"metadata":{"finalizers":null}}'
kubectl get configmap stuck -n k8s-from-zeroExplain this command
kubectl patch configmap stuck -n k8s-from-zero --type=merge -p '{"metadata":{"finalizers":null}}'
kubectl get configmap stuck -n k8s-from-zerokubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.patchUpdate fields of a resource using a strategic merge patch, a JSON merge patch, or a JSON patch. The patch docs say JSON and YAML are accepted.configmapThe resource type.stuckThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--type=mergeThe patch type. merge is a JSON merge patch.-pShort form of --patch. The patch to apply, written here as JSON.'{"metadata":{"finalizers":null}}'The patch document, written as JSON. Only the fields it names are changed.
Explain this command
kubectl patch configmap stuck -n k8s-from-zero --type=merge -p '{"metadata":{"finalizers":null}}'
kubectl get configmap stuck -n k8s-from-zerokubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.configmapThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.stuckThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.
configmap/stuck patched
Error from server (NotFound): configmaps "stuck" not found
The same thing at namespace level is the classic “namespace stuck in Terminating”. Put the same ConfigMap in a fresh namespace and delete the namespace:
kubectl create namespace stuck-demo
sed 's/namespace: k8s-from-zero/namespace: stuck-demo/' stuck.yaml | kubectl apply -f -
kubectl delete namespace stuck-demo --wait=false
kubectl get namespace stuck-demo
kubectl get namespace stuck-demo -o jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'Explain this command
kubectl create namespace stuck-demo
sed 's/namespace: k8s-from-zero/namespace: stuck-demo/' stuck.yaml | kubectl apply -f -
kubectl delete namespace stuck-demo --wait=false
kubectl get namespace stuck-demo
kubectl get namespace stuck-demo -o jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.createCreate a resource from a file or from stdin. Here it takes the subcommand that follows.namespaceCreate a namespace with the specified name. The synopsis is kubectl create namespace NAME [--dry-run=server|client|none].stuck-demoThe object name.
Explain this command
kubectl create namespace stuck-demo
sed 's/namespace: k8s-from-zero/namespace: stuck-demo/' stuck.yaml | kubectl apply -f -
kubectl delete namespace stuck-demo --wait=false
kubectl get namespace stuck-demo
kubectl get namespace stuck-demo -o jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'sedThe stream editor. It rewrites its input line by line and prints the result.'s/namespace: k8s-from-zero/namespace: stuck-demo/'The substitution: replace namespace: k8s-from-zero with namespace: stuck-demo on each line of stuck.yaml.stuck.yamlThe file named by --filename. apply creates the objects or updates them to match this file.|A shell pipe. The output of the command on the left becomes the input of the command on the right.kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.applyApply a configuration to a resource by file name or stdin. The apply docs say the resource is created if it does not exist yet. JSON and YAML are accepted.-fShort form of --filename. The file, directory or URL that contains the configuration to apply.-Read the manifest from standard input, here the output of sed.
Explain this command
kubectl create namespace stuck-demo
sed 's/namespace: k8s-from-zero/namespace: stuck-demo/' stuck.yaml | kubectl apply -f -
kubectl delete namespace stuck-demo --wait=false
kubectl get namespace stuck-demo
kubectl get namespace stuck-demo -o jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.deleteDelete resources by file names, stdin, resources and names, or by resources and label selector.namespaceThe resource type.stuck-demoThe object name.--wait=falseReturn right away instead of waiting until the object is gone. The delete docs say --wait waits for resources to be gone, which includes waiting for finalizers.
Explain this command
kubectl create namespace stuck-demo
sed 's/namespace: k8s-from-zero/namespace: stuck-demo/' stuck.yaml | kubectl apply -f -
kubectl delete namespace stuck-demo --wait=false
kubectl get namespace stuck-demo
kubectl get namespace stuck-demo -o jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.namespaceThe resource type.stuck-demoThe object name.
Explain this command
kubectl create namespace stuck-demo
sed 's/namespace: k8s-from-zero/namespace: stuck-demo/' stuck.yaml | kubectl apply -f -
kubectl delete namespace stuck-demo --wait=false
kubectl get namespace stuck-demo
kubectl get namespace stuck-demo -o jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.namespaceThe resource type.stuck-demoThe object name.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.jsonpath='{range .status.conditions[*]}{.type}={.status}: {.message}{"\n"}{end}'A jsonpath output format. The get docs say jsonpath prints the fields the expression selects. The lesson uses this path to print the fields named in the command.
namespace/stuck-demo created
configmap/stuck created
namespace "stuck-demo" deleted
NAME STATUS AGE
stuck-demo Terminating 8s
NamespaceDeletionDiscoveryFailure=False: All resources successfully discovered
NamespaceDeletionGroupVersionParsingFailure=False: All legacy kube types successfully parsed
NamespaceDeletionContentFailure=False: All content successfully deleted, may be waiting on finalization
NamespaceContentRemaining=True: Some resources are remaining: configmaps. has 1 resource instances
NamespaceFinalizersRemaining=True: Some content in the namespace has finalizers remaining: example.com/cleanup in 1 resource instances
The conditions tell you exactly what to look for: one ConfigMap with the finalizer example.com/cleanup. Release it, and the namespace finishes on its own a few seconds later:
kubectl patch configmap stuck -n stuck-demo --type=merge -p '{"metadata":{"finalizers":null}}'
kubectl get namespace stuck-demoExplain this command
kubectl patch configmap stuck -n stuck-demo --type=merge -p '{"metadata":{"finalizers":null}}'
kubectl get namespace stuck-demokubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.patchUpdate fields of a resource using a strategic merge patch, a JSON merge patch, or a JSON patch. The patch docs say JSON and YAML are accepted.configmapThe resource type.stuckThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.stuck-demoThe namespace name.--type=mergeThe patch type. merge is a JSON merge patch.-pShort form of --patch. The patch to apply, written here as JSON.'{"metadata":{"finalizers":null}}'The patch document, written as JSON. Only the fields it names are changed.
Explain this command
kubectl patch configmap stuck -n stuck-demo --type=merge -p '{"metadata":{"finalizers":null}}'
kubectl get namespace stuck-demokubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.namespaceThe resource type.stuck-demoThe object name.
configmap/stuck patched
Error from server (NotFound): namespaces "stuck-demo" not found
- A node that stops reporting. Each kubelet renews a Lease in
kube-node-leaseas its heartbeat, and the node controller marks a node whose heartbeats stop (Nodes). On kind a node is a container, so you can stop its kubelet:
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; doneExplain this command
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; donedatePrint the date and time. -u +%T prints the UTC time of day.-uWith date, print the time in UTC.+%TThe date output format: the time of day as HH:MM:SS.
Explain this command
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; donedockerThe Docker CLI. On this lab, kind node processes run as containers, so docker exec reaches the node.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].k8s-ep22-workerThe worker node's container. Each kind node is a Docker container named after the cluster; your cluster name replaces k8s-ep22.systemctlControl a systemd service on the node. The lesson uses it to stop or start kubelet.stopThe systemctl action: stop the service.kubeletThe systemd service to act on: the kubelet, the agent on each node.
Explain this command
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; doneforA shell loop. It runs the body once for each value after in.iThe loop variable.inIntroduces the list of values the loop walks through.$(seq 1 14)The numbers 1 to 14, so the loop runs 14 times.
Explain this command
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; donedoStarts the loop body.echoPrint one line for this pass of the loop."$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"The line to print: the UTC time, then the node's row from kubectl get without the header line.
Explain this command
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; donesleepShell. Waits the given number of seconds.5How many seconds sleep waits before the next command runs.
Explain this command
date -u +%T; docker exec k8s-ep22-worker systemctl stop kubelet
for i in $(seq 1 14); do echo "$(date -u +%T) $(kubectl get node k8s-ep22-worker --no-headers)"; sleep 5; donedoneEnds the loop.
21:27:27
21:27:27 k8s-ep22-worker Ready <none> 4m10s v1.37.0
...
21:28:13 k8s-ep22-worker Ready <none> 4m56s v1.37.0
21:28:18 k8s-ep22-worker NotReady <none> 5m1s v1.37.0
...
Your cluster name replaces k8s-ep22 in the container name. In our run the node controller set the condition 49 seconds after the kubelet stopped. Now read what the control plane did:
kubectl describe node k8s-ep22-worker
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web -o jsonpath='{range .items[*].endpoints[*]}{.addresses[0]} ready={.conditions.ready}{"\n"}{end}'Explain this command
kubectl describe node k8s-ep22-worker
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web -o jsonpath='{range .items[*].endpoints[*]}{.addresses[0]} ready={.conditions.ready}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.describeShow details of a specific resource or group of resources. The describe docs say this includes related resources such as events or controllers.nodeThe resource type.k8s-ep22-workerThe worker node's name. Our lab cluster is k8s-ep22; your node name starts with your cluster's name.
Explain this command
kubectl describe node k8s-ep22-worker
kubectl get endpointslice -n k8s-from-zero -l kubernetes.io/service-name=web -o jsonpath='{range .items[*].endpoints[*]}{.addresses[0]} ready={.conditions.ready}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.endpointsliceThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-lShort form of --selector. A label query. The get docs say it supports '=', '==', '!=', 'in' and 'notin', and that matching objects must satisfy every constraint.kubernetes.io/service-name=webThe label selector passed to -l. It keeps only the objects whose labels match this query.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.jsonpath='{range .items[*].endpoints[*]}{.addresses[0]} ready={.conditions.ready}{"\n"}{end}'A jsonpath output format. The get docs say jsonpath prints the fields the expression selects. The lesson uses this path to print the fields named in the command.
Taints: node.kubernetes.io/unreachable:NoExecute
node.kubernetes.io/unreachable:NoSchedule
...
Ready Unknown Tue, 10 Nov 2026 23:23:48 +0200 Tue, 10 Nov 2026 23:28:16 +0200 NodeStatusUnknown Kubelet stopped posting node status.
...
10.244.1.2 ready=false
10.244.1.3 ready=false
The node’s conditions went to Unknown and it got two taints. The Service stopped sending traffic to its Pods at once, even though kubectl get pods still showed them Running and 1/1: that status was last written by the kubelet that is now silent. The Pods are not deleted yet, because every Pod gets a default toleration for these taints (Taints and Tolerations):
kubectl get pod -n k8s-from-zero -l app.kubernetes.io/name=web -o jsonpath='{range .items[0].spec.tolerations[*]}{.key} {.effect} {.tolerationSeconds}{"\n"}{end}'Explain this command
kubectl get pod -n k8s-from-zero -l app.kubernetes.io/name=web -o jsonpath='{range .items[0].spec.tolerations[*]}{.key} {.effect} {.tolerationSeconds}{"\n"}{end}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.podThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-lShort form of --selector. A label query. The get docs say it supports '=', '==', '!=', 'in' and 'notin', and that matching objects must satisfy every constraint.app.kubernetes.io/name=webThe label selector passed to -l. It keeps only the objects whose labels match this query.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.jsonpath='{range .items[0].spec.tolerations[*]}{.key} {.effect} {.tolerationSeconds}{"\n"}{end}'A jsonpath output format. The get docs say jsonpath prints the fields the expression selects. The lesson uses this path to print the fields named in the command.
node.kubernetes.io/not-ready NoExecute 300
node.kubernetes.io/unreachable NoExecute 300
Five minutes after the node went Unknown, the Pods were marked for deletion and the Deployment made new ones:
kubectl get pods -n k8s-from-zero -o wide
kubectl get events -n k8s-from-zero --field-selector reason=FailedScheduling -o custom-columns=OBJECT:.involvedObject.name,MESSAGE:.messageExplain this command
kubectl get pods -n k8s-from-zero -o wide
kubectl get events -n k8s-from-zero --field-selector reason=FailedScheduling -o custom-columns=OBJECT:.involvedObject.name,MESSAGE:.messagekubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.podsThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.wideAn output format: the default table plus more columns. The get examples say it adds more information, such as the node name. The lesson's output adds IP and NODE.
Explain this command
kubectl get pods -n k8s-from-zero -o wide
kubectl get events -n k8s-from-zero --field-selector reason=FailedScheduling -o custom-columns=OBJECT:.involvedObject.name,MESSAGE:.messagekubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.eventsThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--field-selectorFilter the list by field. The get docs treat --field-selector as separate from a label selector.reason=FailedSchedulingThe field query passed to --field-selector: reason=FailedScheduling.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.custom-columns=OBJECT:.involvedObject.name,MESSAGE:.messageA custom table. custom-columns is an output format. The get examples write each column as a heading, a colon, and a JSONPath.
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
client 1/1 Terminating 0 8m41s 10.244.1.4 k8s-ep22-worker <none> <none>
web-86f79b74d9-cjsf2 0/1 Pending 0 30s <none> <none> <none> <none>
web-86f79b74d9-f5vdk 1/1 Terminating 0 8m41s 10.244.1.3 k8s-ep22-worker <none> <none>
web-86f79b74d9-plcl5 0/1 Pending 0 30s <none> <none> <none> <none>
web-86f79b74d9-tkwg6 1/1 Terminating 0 8m41s 10.244.1.2 k8s-ep22-worker <none> <none>
OBJECT MESSAGE
web-86f79b74d9-cjsf2 0/2 nodes are available: 2 node(s) had untolerated taint(s). preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.
...
The replacements stay Pending: the only other node is the control plane, which carries a taint that keeps normal Pods off. The bare client Pod has no controller, so nothing replaces it. Start the kubelet again and the node recovers; the Pending Pods land on it.
docker exec k8s-ep22-worker systemctl start kubelet
kubectl get nodesExplain this command
docker exec k8s-ep22-worker systemctl start kubelet
kubectl get nodesdockerThe Docker CLI. On this lab, kind node processes run as containers, so docker exec reaches the node.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].k8s-ep22-workerThe worker node's container. Each kind node is a Docker container named after the cluster; your cluster name replaces k8s-ep22.systemctlControl a systemd service on the node. The lesson uses it to stop or start kubelet.startThe systemctl action: start the service again.kubeletThe systemd service to act on: the kubelet, the agent on each node.
Explain this command
docker exec k8s-ep22-worker systemctl start kubelet
kubectl get nodeskubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.nodesThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.
NAME STATUS ROLES AGE VERSION
k8s-ep22-control-plane Ready control-plane 11m v1.37.0
k8s-ep22-worker Ready <none> 11m v1.37.0
Eviction: the kubelet takes Pods off its own node
The last case is the opposite one: a healthy kubelet removing Pods to protect its node. The kubelet watches signals such as free memory, free disk and free inodes, and when one crosses a hard threshold it sets a condition such as DiskPressure and evicts Pods (Node-pressure Eviction). The documented defaults on Linux are memory.available<100Mi, nodefs.available<10%, imagefs.available<15% and inodesFree<5%. Pods using more than they request go first.
kind turns the disk thresholds off, which you can read from the kubelet’s live config:
kubectl get --raw /api/v1/nodes/k8s-ep22-worker/proxy/configz | python3 -c 'import json,sys; c=json.load(sys.stdin)["kubeletconfig"]; print(json.dumps({k:c.get(k) for k in ["evictionHard","evictionPressureTransitionPeriod"]}, indent=2))'Explain this command
kubectl get --raw /api/v1/nodes/k8s-ep22-worker/proxy/configz | python3 -c 'import json,sys; c=json.load(sys.stdin)["kubeletconfig"]; print(json.dumps({k:c.get(k) for k in ["evictionHard","evictionPressureTransitionPeriod"]}, indent=2))'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.--rawMake a raw HTTP request to the Kubernetes API path that follows./api/v1/nodes/k8s-ep22-worker/proxy/configzThe API path. The API server proxies it to the kubelet on k8s-ep22-worker, whose configz endpoint returns the kubelet's running configuration.|A shell pipe. The output of the command on the left becomes the input of the command on the right.python3The Python interpreter. The lesson uses a one-line script to pick fields from JSON.-cWith python3, run the program given as a string.'import json,sys; c=json.load(sys.stdin)["kubeletconfig"]; print(json.dumps({k:c.get(k) for k in ["evictionHard","evictionPressureTransitionPeriod"]}, indent=2))'A short Python program: read the JSON, take kubeletconfig, and print only evictionHard and evictionPressureTransitionPeriod.
{
"evictionHard": {
"imagefs.available": "0%",
"nodefs.available": "0%",
"nodefs.inodesFree": "0%"
},
"evictionPressureTransitionPeriod": "5m0s"
}
So on kind we cannot show a real DiskPressure. What we can show is the per-Pod version: a container can have an ephemeral-storage limit, and the kubelet evicts the Pod when its writable layer, logs and emptyDir volumes go over it (Resource Management). Save this as disk-hog.yaml:
apiVersion: v1
kind: Pod
metadata:
name: disk-hog
namespace: k8s-from-zero
spec:
restartPolicy: Never
containers:
- name: hog
image: busybox:1.37
command: ["sh", "-c", "dd if=/dev/zero of=/tmp/fill bs=1M count=60; echo wrote 60Mi; sleep 3600"]
resources:
limits:
ephemeral-storage: 20Mi
kubectl apply -f disk-hog.yaml
kubectl get pod disk-hog -n k8s-from-zero
kubectl get pod disk-hog -n k8s-from-zero -o jsonpath='{.status.phase} {.status.reason}: {.status.message}{"\n"}'Explain this command
kubectl apply -f disk-hog.yaml
kubectl get pod disk-hog -n k8s-from-zero
kubectl get pod disk-hog -n k8s-from-zero -o jsonpath='{.status.phase} {.status.reason}: {.status.message}{"\n"}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.applyApply a configuration to a resource by file name or stdin. The apply docs say the resource is created if it does not exist yet. JSON and YAML are accepted.-fShort form of --filename. The file, directory or URL that contains the configuration to apply.disk-hog.yamlThe file named by --filename. apply creates the objects or updates them to match this file.
Explain this command
kubectl apply -f disk-hog.yaml
kubectl get pod disk-hog -n k8s-from-zero
kubectl get pod disk-hog -n k8s-from-zero -o jsonpath='{.status.phase} {.status.reason}: {.status.message}{"\n"}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.podThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.disk-hogThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.
Explain this command
kubectl apply -f disk-hog.yaml
kubectl get pod disk-hog -n k8s-from-zero
kubectl get pod disk-hog -n k8s-from-zero -o jsonpath='{.status.phase} {.status.reason}: {.status.message}{"\n"}'kubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.podThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.disk-hogThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.-oShort form of --output. It selects the output format. For get, the formats include json, yaml, name, jsonpath, custom-columns and wide.jsonpath='{.status.phase} {.status.reason}: {.status.message}{"\n"}'A jsonpath output format. The get docs say jsonpath prints the fields the expression selects. The lesson uses this path to print the fields named in the command.
pod/disk-hog created
NAME READY STATUS RESTARTS AGE
disk-hog 0/1 Error 0 30s
Failed Evicted: Pod ephemeral local storage usage exceeds the total limit of containers 20Mi.
STATUS Error hides the reason; the status.reason field says Evicted. Evicted Pods stay as Failed objects until you delete them:
kubectl get pods -n k8s-from-zero --field-selector=status.phase=Failed
kubectl delete pods -n k8s-from-zero --field-selector=status.phase=FailedExplain this command
kubectl get pods -n k8s-from-zero --field-selector=status.phase=Failed
kubectl delete pods -n k8s-from-zero --field-selector=status.phase=FailedkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.getDisplay one or many resources. kubectl get prints a table of the most important information about the resources you name.podsThe resource type to display. kubectl get points you to kubectl api-resources for the full list of types the server supports.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--field-selector=status.phase=FailedFilter the list by field. The get docs treat --field-selector as separate from a label selector. The value after the equals sign is the field query.
Explain this command
kubectl get pods -n k8s-from-zero --field-selector=status.phase=Failed
kubectl delete pods -n k8s-from-zero --field-selector=status.phase=FailedkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.deleteDelete resources by file names, stdin, resources and names, or by resources and label selector.podsThe resource type.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--field-selector=status.phase=FailedFilter the list by field. The get docs treat --field-selector as separate from a label selector. The value after the equals sign is the field query.
NAME READY STATUS RESTARTS AGE
disk-hog 0/1 Error 0 38s
pod "disk-hog" deleted from k8s-from-zero namespace
kubectl debug adds a shell where there is none
Many production images contain only the app, with no shell, so kubectl exec ... -- sh fails. kubectl debug adds an ephemeral container (a temporary container added to a running Pod for inspection, which is never restarted automatically) with the tools you need (Debug Running Pods). Save this as noshell.yaml; the pause image contains a single program and nothing else:
apiVersion: v1
kind: Pod
metadata:
name: noshell
namespace: k8s-from-zero
spec:
containers:
- name: app
image: registry.k8s.io/pause:3.10
kubectl apply -f noshell.yaml
kubectl exec -n k8s-from-zero noshell -- shExplain this command
kubectl apply -f noshell.yaml
kubectl exec -n k8s-from-zero noshell -- shkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.applyApply a configuration to a resource by file name or stdin. The apply docs say the resource is created if it does not exist yet. JSON and YAML are accepted.-fShort form of --filename. The file, directory or URL that contains the configuration to apply.noshell.yamlThe file named by --filename. apply creates the objects or updates them to match this file.
Explain this command
kubectl apply -f noshell.yaml
kubectl exec -n k8s-from-zero noshell -- shkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.execExecute a command in a container. The synopsis is kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...].-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.noshellThe object name: a Pod whose image has no shell.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.shA shell. The command that follows runs inside it.
pod/noshell created
error: Internal error occurred: Internal error occurred: error executing command in container: ... exec: "sh": executable file not found in $PATH
Add a busybox container that shares the app container’s process namespace with --target:
kubectl debug -it -n k8s-from-zero noshell --image=busybox:1.37 --target=app -c shellExplain this command
kubectl debug -it -n k8s-from-zero noshell --image=busybox:1.37 --target=app -c shellkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.debugDebug a resource by creating a copy with extra tools, or by adding an ephemeral container to a running Pod. The debug docs cover --image, --target, --copy-to and --share-processes.-itShort form of --stdin and --tty together, for an interactive session.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.noshellThe object name: a Pod whose image has no shell.--image=busybox:1.37The container image, set here to busybox:1.37.--target=appThe existing container whose process namespace the ephemeral container should join. The debugging guide on kubernetes.io says the container runtime must support it.-cShort form of --container. For kubectl debug, this names the new ephemeral container.shellThe name for the new ephemeral container: shell.
Targeting container "app". If you don't see processes from this container it may be because the container runtime doesn't support this feature.
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
/ # ps
PID USER TIME COMMAND
1 65535 0:00 /pause
39 root 0:00 sh
49 root 0:00 ps
/ # exit
Session ended, the ephemeral container will not be restarted but may be reattached using 'kubectl attach noshell -c shell -n k8s-from-zero -i -t' if it is still running
You can see the app’s process as PID 1, and the app’s filesystem is reachable at /proc/1/root. Note the warning: the session is recorded in the container’s logs, so do not type secrets into it.
For node problems, kubectl debug node/<name> starts a Pod on that node in the host’s process, network and IPC namespaces, with the node’s root filesystem mounted at /host (node debugging):
kubectl debug node/k8s-ep22-worker -n k8s-from-zero --image=busybox:1.37 -- chroot /host sh -c 'systemctl is-active kubelet containerd; df -h /var | tail -1; journalctl -u kubelet --no-pager -n 3 -o cat | cut -c1-110'
kubectl logs -n k8s-from-zero node-debugger-k8s-ep22-worker-q64wpExplain this command
kubectl debug node/k8s-ep22-worker -n k8s-from-zero --image=busybox:1.37 -- chroot /host sh -c 'systemctl is-active kubelet containerd; df -h /var | tail -1; journalctl -u kubelet --no-pager -n 3 -o cat | cut -c1-110'
kubectl logs -n k8s-from-zero node-debugger-k8s-ep22-worker-q64wpkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.debugDebug a resource by creating a copy with extra tools, or by adding an ephemeral container to a running Pod. The debug docs cover --image, --target, --copy-to and --share-processes.node/k8s-ep22-workerThe resource written as type/name: node/k8s-ep22-worker.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--image=busybox:1.37The container image, set here to busybox:1.37.--Ends kubectl's flags. The exec examples say to use two dashes so the command's own flags are read as that command's flags.chrootRun a command with a different root filesystem. The node-debug docs use chroot /host to see the node's own files./hostWhere kubectl debug mounts the node's root filesystem in the debugging Pod. chroot into it to use the node's own tools.shA shell. The command that follows runs inside it.-cAn argument of sh. It tells sh to run the command string that follows.'systemctl is-active kubelet containerd; df -h /var | tail -1; journalctl -u kubelet --no-pager -n 3 -o cat | cut -c1-110'The commands run on the node: are kubelet and containerd active, how full /var is, and the last three kubelet log lines, cut to 110 characters.
Explain this command
kubectl debug node/k8s-ep22-worker -n k8s-from-zero --image=busybox:1.37 -- chroot /host sh -c 'systemctl is-active kubelet containerd; df -h /var | tail -1; journalctl -u kubelet --no-pager -n 3 -o cat | cut -c1-110'
kubectl logs -n k8s-from-zero node-debugger-k8s-ep22-worker-q64wpkubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.logsPrint the logs for a container in a pod or specified resource. If the pod has only one container, the container name is optional.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.node-debugger-k8s-ep22-worker-q64wpThe debugging Pod's name from our run. kubectl debug prints the name; yours ends in a different random suffix.
Creating debugging pod node-debugger-k8s-ep22-worker-q64wp with container debugger on node k8s-ep22-worker.
active
active
/dev/vdb 128G 57G 71G 45% /var
I1110 21:35:39.513647 2002 server.go:177] "Pod update broadcasted" podUID="78ff0c00-0be6-4fb6-b9fc-dbe14cf8
...
Your Pod name ends in a different random suffix. The docs warn that this Pod is not privileged and that chroot /host can fail; on our kind node it worked, and --profile=sysadmin is the documented option when it does not. A node debugger Pod is broad access to the machine, so delete it when you are done: kubectl delete pod -n k8s-from-zero node-debugger-k8s-ep22-worker-q64wp.
Clean up the lab:
kubectl delete -f web.yaml -f noshell.yaml
kubectl delete pod client -n k8s-from-zero --wait=falseExplain this command
kubectl delete -f web.yaml -f noshell.yaml
kubectl delete pod client -n k8s-from-zero --wait=falsekubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.deleteDelete resources by file names, stdin, resources and names, or by resources and label selector.-fShort form of --filename. For delete, the file that contains the resource to delete.web.yamlThe file named by --filename. delete removes the resources that file describes.-fShort form of --filename. For delete, the file that contains the resource to delete.noshell.yamlThe file named by --filename. delete removes the resources that file describes.
Explain this command
kubectl delete -f web.yaml -f noshell.yaml
kubectl delete pod client -n k8s-from-zero --wait=falsekubectlThe Kubernetes command-line client. Subcommands and flags are documented under kubernetes.io/docs/reference/kubectl/.deleteDelete resources by file names, stdin, resources and names, or by resources and label selector.podThe resource type.clientThe object name.-nShort form of --namespace. If present, the namespace scope for this CLI request.k8s-from-zeroThe namespace name.--wait=falseReturn right away instead of waiting until the object is gone. The delete docs say --wait waits for resources to be gone, which includes waiting for finalizers.
deployment.apps "web" deleted from k8s-from-zero namespace
service "web" deleted from k8s-from-zero namespace
pod "noshell" deleted from k8s-from-zero namespace
pod "client" deleted from k8s-from-zero namespace
When it goes wrong
Connection refusedwith endpoints present. The port is wrong. Compare the EndpointSlice PORTS column with whatnetstat -tlnshows inside the Pod, and check thattargetPortnames the container port, not the Service port.- Endpoints present but
ready=false. The Pods fail their readiness probe (part 10), or their node is not reporting.kubectl get endpointslice ... -o yamlshows the condition per address;kubectl describe podshows probe failures. bad addressfor a name that exists. Wrong namespace, a typo, or no CoreDNS endpoints. Test with the full name and checkkubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns.kubectl deletehangs. Readmetadata.finalizers. Find the controller that owns the name, fix it, and let it finish. Remove a finalizer by hand only when you know its cleanup is not needed.- Pods
Runningon aNotReadynode. That status is stale. Trust the node conditions, the taints and the EndpointSlice, and expect eviction after the 300-second default toleration.
Cheat sheet
| Task | Command or field | Note |
|---|---|---|
| Endpoints of a Service | kubectl get endpointslice -l kubernetes.io/service-name=web |
<unset> means no Pod matches |
| Selector vs labels | kubectl describe svc web and kubectl get pods --show-labels |
compare them character by character |
| Listening ports in a Pod | kubectl exec deploy/web -- netstat -tln |
must match targetPort |
| Test a Pod directly | wget -qO- http://<pod IP>:80 from a client Pod |
skips the Service |
| Full DNS name | <svc>.<ns>.svc.cluster.local |
bad address means it did not resolve |
| CoreDNS health | kubectl get endpointslice -n kube-system -l kubernetes.io/service-name=kube-dns |
no endpoints, no DNS |
| Why an object is stuck | kubectl get <kind> <name> -o jsonpath='{.metadata.finalizers}' |
plus deletionTimestamp |
| Why a namespace is stuck | kubectl get ns <ns> -o jsonpath='{.status.conditions}' |
names the blocking finalizer |
| Release a finalizer | kubectl patch ... --type=merge -p '{"metadata":{"finalizers":null}}' |
last resort |
| Node health | kubectl describe node <node> |
Conditions and Taints |
| Default tolerations | .spec.tolerations of any Pod |
not-ready and unreachable, 300 s |
| Why a Pod failed | -o jsonpath='{.status.reason}: {.status.message}' |
shows Evicted and why |
| Clear evicted Pods | kubectl delete pods --field-selector=status.phase=Failed |
per namespace |
| Shell next to a container | kubectl debug -it <pod> --image=busybox:1.37 --target=<container> |
adds an ephemeral container |
| Shell on a node | kubectl debug node/<node> -it --image=busybox:1.37 |
host files at /host; delete the Pod after |
Recap and what is next
- Follow a Service request in order: name, endpoints, port, Pod.
bad addressandConnection refusedpoint at different stops. - A finalizer keeps an object, or a whole namespace, in Terminating until its owner removes it; the namespace conditions tell you which one.
- A silent node is NotReady after about 50 seconds in our lab, loses its Service traffic at once, and loses its Pods after the 300-second default toleration.
- The kubelet evicts Pods to protect its node, and
status.reasontells you when that happened. kubectl debuggives you tools next to a shell-less container, or on a node.
Command explanations and quoted passages in this lesson come from or adapt the kubectl reference and the Kubernetes documentation, © The Kubernetes Authors, licensed under CC BY 4.0. We shortened and edited some passages. Kubernetes® is a registered trademark of The Linux Foundation. aitamer.news is not affiliated with or endorsed by The Linux Foundation or the CNCF.

The Campfire
CommentsThanks. Your comment is waiting for the desk. Once it is approved it appears here within about a minute.
Add a comment