The CKNE is a 2-hour hands-on exam on the network of a Kubernetes cluster. This page sorts, by blueprint domain, the commands that the course has you type, with what to look at in each output. It is meant for readers who have already worked through the level 6 lessons and want a memory aid to practice with. The outputs come from those lessons: Kubernetes 1.37, Istio 1.32.0 and Cilium 1.20.4 or 1.20.5 depending on the lesson, and the lesson commands install 1.20.5. For the exam format and the objectives map, see Prepare for the CKNE.
What you will learn
- Find the command that answers a networking need, domain by domain.
- Read the state of a Service, of DNS, of a Gateway or of a BGP session in the output that shows it.
- Capture a Pod's traffic and recognize a refusal, a loss or a DNS failure.
- Find a denied flow with Hubble and count it with a metric.
- Check a change against the cluster state, not against the file you have just written.
What is the framework of the exam?
The CKNE exam lasts 2 hours, is taken in a remote Linux desktop and contains no multiple-choice questions: you solve tasks on real clusters. The Kubernetes, Cilium and Istio documentation is allowed. The minimum passing score is not published on the product page, and the blueprint gives no Kubernetes version.
These values come from the Linux Foundation product page and its official blueprint, read on 14 November 2026; the detail and the sources are in the Prepare for the CKNE page. If the official page says something different when you read this, it is the one that holds. Also read the CKNE session rules on the Linux Foundation site before exam day: this page does not repeat them.
Which command for which need?
This table is the entry point: you start from the task statement, find the command here, and the following sections show the output to read. Values between angle brackets are replaced by those of the task statement. The cilium-dbg commands run in the cilium-agent container of a Cilium Pod, with kubectl -n kube-system exec ds/cilium -c cilium-agent --. This form targets a single Pod of the DaemonSet, chosen by kubectl: to query the node of a specific Pod, target the Cilium Pod of that node (kubectl -n kube-system get pods -l k8s-app=cilium -o wide gives their node).
| Need | Command |
|---|---|
| Find a Pod's interface on its node | ip route get <pod-ip> | grep -o 'dev [^ ]*' |
| Capture a Pod's traffic | sudo tcpdump -i <interface> -nn -U -w <file>.pcap |
| See the Pods behind a Service | kubectl get endpointslice -l kubernetes.io/service-name=<service> |
| Read the kube-proxy mode | kubectl -n kube-system get configmap kube-proxy -o yaml | grep -E '^\s+mode:' |
| Know whether Cilium replaces kube-proxy | cilium-dbg status | grep KubeProxyReplacement |
| Read the Corefile | kubectl -n kube-system get configmap coredns -o jsonpath='{.data.Corefile}' |
| Read the state of a Gateway | kubectl -n <ns> get gateway <name> -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}' |
| Find a denied flow | hubble observe --namespace <ns> --verdict DROPPED --since 1m --last 5 |
| Count denials per Pod | curl -s http://<node-ip>:9965/metrics | grep hubble_drop_total |
| Read the BGP sessions of all nodes | cilium bgp peers |
| Read a node's egress table | cilium-dbg bpf egress list |
| Read the state of ClusterMesh | cilium clustermesh status --context <cluster> |
Which shortcuts should you set at the start of the session?
Set your aliases before the first task: they pay for themselves from the second command. The $do variable abbreviates --dry-run=client -o yaml, which generates a manifest without creating anything. These lines are those of the CKA essential commands page; check what the exam environment has already set before typing them again.
alias k=kubectlexport do="--dry-run=client -o yaml"kubectl config current-contextThe last line checks where kubectl points. On an exam with several clusters, this is the first reflex before any command that changes something.
How do you check a network change against the cluster state?
A manifest applied without error proves nothing: the cluster accepts almost anything, and the effect is then read in the cluster state. Each domain below therefore has its own state reading: the endpoints of a Service, the conditions of a Gateway or of a route, an agent's table, a flow seen by Hubble, an answer received from a Pod. Make a habit of finishing every task with this reading, then with a real call from a Pod when the task statement mentions traffic.
Core Infrastructure and CNI (15%)
This domain asks you to know which network plugin is running, where Pod addresses come from, and where to look when a packet does not arrive. The commands come from the lessons Cilium, Pod networking, Capture a Pod's traffic and Multus.
Which network plugin and which kube-proxy mode?
The cilium-dbg status command summarizes the agent state. Filtered on KubeProxyReplacement, it tells you whether Cilium serves the Services in place of kube-proxy. The check is completed on the node: no KUBE-SVC rule and no kube-proxy DaemonSet.
kubectl -n kube-system exec ds/cilium -c cilium-agent -- cilium-dbg status | grep KubeProxyReplacementsudo iptables-save | grep -c KUBE-SVCkubectl -n kube-system get ds kube-proxyKubeProxyReplacement: True [enp1s0 10.10.50.14 fe80::5054:8bff:fed2:13 (Direct Routing)]0Error from server (NotFound): daemonsets.apps "kube-proxy" not foundKubeProxyReplacement: True answers the question, and the square brackets give the interface and the address through which Cilium serves the Services. The 0 and the NotFound are the right answer here: grep -c returns exit code 1 when it counts zero lines, and kubectl returns 1 on NotFound, two expected codes that you must not mistake for a failure. On a cluster that keeps kube-proxy, read its mode instead:
kubectl -n kube-system get configmap kube-proxy -o yaml | grep -E '^\s+mode:'kubectl -n kube-system logs -l k8s-app=kube-proxy --tail=-1 | grep -i proxier mode: iptablesI1112 05:55:35.080667 1 server_linux.go:144] "Using iptables Proxier"The ConfigMap declares the mode and the log confirms it. The log is authoritative if someone has edited the ConfigMap without restarting the kube-proxy Pods.
Where do Pod addresses come from?
Each node receives an address block, and the node's Pods take their address from that block. With Cilium, the block is read in the CiliumNode resource. With the Kubernetes podCIDR field, it is read on the node.
kubectl get ciliumnode net-w1.lab -o jsonpath='{.spec.ipam.podCIDRs}{"\n"}'kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.podCIDR}{"\n"}{end}'["10.244.1.0/24"]The first command returns the block of net-w1. Compare it with the address of a Pod on that node using kubectl -n demo get pods -o wide: it must be inside the block. The IPAM line of cilium-dbg status gives the fill level, for example IPv4: 4/254 allocated from 10.244.0.0/24. The second command reads the podCIDR field that Kubernetes assigns to each node.
How do you find a Pod's interface and capture its traffic?
A Pod lives in its own network namespace, linked to the node by a pair of virtual interfaces. The route to the Pod's address gives the node interface to listen on, and tcpdump writes the capture to a file that -r reads back. First note the node and the Pod's address with kubectl -n l2-mesure get pods -o wide, then run on that node:
sudo mkdir -p /tmp/l2-capturesip route get 10.244.38.121 | grep -o 'dev [^ ]*'sudo timeout 12 tcpdump -i calic7ab51f6efc -nn -U -w /tmp/l2-captures/perte.pcapsudo tcpdump -nn -r /tmp/l2-captures/perte.pcapdev calic7ab51f6efcThe first command names the outgoing interface to the Pod, here calic7ab51f6efc, which exists only on the Pod's node. -nn keeps addresses and ports as numbers, -U writes each packet without waiting, and timeout 12 stops the capture after 12 seconds. To read the capture, ask three questions: did the name resolve, did a SYN leave, and what comes back?
| Cause | Does the name resolve? | Does a SYN leave? | What comes back |
|---|---|---|---|
| Refusal | yes | yes | an [R.] almost immediately |
| Loss | yes | yes, several times, identical | nothing |
| DNS | no | no | NXDomain answers |
The RST of a refusal seems to come from the Service's address and not from the Pod that refused: a client-side capture never shows the real sender. To see it, capture on the server side.
When you would rather see the Pod from the inside, nsenter runs the node's tcpdump in the container's network namespace, without installing anything in the image. It needs the container's PID, which crictl gives:
id=$(crictl ps --name curl -q --label io.kubernetes.pod.name=client-perte | head -1)pid=$(crictl inspect --output go-template --template '{{.info.pid}}' "$id")nsenter -t "$pid" -n ip -br addrtimeout 8 nsenter -t "$pid" -n tcpdump -i eth0 -nn 'tcp[tcpflags] & (tcp-syn|tcp-rst) != 0'lo UNKNOWN 127.0.0.1/8 ::1/128eth0@if238 UP 10.244.38.121/32 fe80::c8bf:aaff:fe2a:70aa/6421:04:46.172234 IP 10.244.38.121.49500 > 10.103.109.125.80: Flags [S], seq 3925980862, ...21:04:47.228391 IP 10.244.38.121.49500 > 10.103.109.125.80: Flags [S], seq 3925980862, ...21:04:48.252463 IP 10.244.38.121.49500 > 10.103.109.125.80: Flags [S], seq 3925980862, ...These commands need root rights on the node. The same SYN, with the same sequence number, leaves again one second later with no answer: this is the signature of a loss, seen here from inside the Pod. If you have no session on the node, kubectl debug adds to the Pod an ephemeral container that carries tcpdump:
kubectl -n l2-mesure debug client --image=nicolaka/netshoot:v0.16@sha256:b09d9b21381f47a79b3cbcb30da25266dc17186ea00ae65e99fdc51396f48e70 \ --target=curl -- timeout 6 tcpdump -i any -nn -c 4 "tcp port 80"kubectl -n l2-mesure logs client -c debugger-xxxxxThe tcpdump output does not go through kubectl debug: it is in the logs of the ephemeral container, whose name appears on the line Defaulting debug container name to debugger-xxxxx.. In a namespace with the restricted Pod Security level, no profile allows the capture, and node access remains.
How do you follow the translation of a Service's address?
The capture shows the Service's address on both sides of the Pod. The translation to a Pod's address is read in the nat table of iptables, chain after chain: KUBE-SERVICES recognizes the Service, KUBE-SVC-… picks a Pod, KUBE-SEP-… rewrites the destination.
sudo iptables -t nat -L KUBE-SERVICES -n -v -x --line-numberssudo iptables -t nat -L KUBE-SVC-6YUOJRSQLA2RVKTP -n -v -x --line-numberssudo iptables -t nat -L KUBE-SEP-DDC6H4GETC7NS63A -n -v -x --line-numbersThe KUBE-SVC-… and KUBE-SEP-… names are specific to each Service and each Pod: take yours from the KUBE-SERVICES output. Read the counters before and after a request: each rule on the path gains one packet, the SYN, because only the first packet of a connection goes through these rules.
How do you add a second interface to a Pod with Multus?
Multus attaches a second interface through the k8s.v1.cni.cncf.io/networks annotation, which names a NetworkAttachmentDefinition. The real mode of a macvlan interface is read from the node, in the container's network namespace.
kubectl -n multus-demo get pod a -o jsonpath='{.status.containerStatuses[0].containerID}'pid=$(sudo crictl inspect --output go-template --template '{{.info.pid}}' <container-id>)sudo nsenter -t $pid -n ip -d link show net1 | grep -o 'macvlan mode [a-z]*'kubectl -n multus-demo exec a -- ping -c 2 -W 2 192.168.100.22macvlan mode bridge2 packets transmitted, 2 packets received, 0% packet lossRead the container ID without its containerd:// prefix. Editing the NAD does not change Pods that are already running: the interface keeps its bridge mode until the Pod is recreated.
Service Networking and DNS (25%)
This domain weighs a quarter of the blueprint. It asks you to know which Pods a Service reaches, what the cluster DNS answers, and whether a Gateway and its routes are ready. The commands come from the lessons Services, CoreDNS, Probes and Gateway API.
Which Pods does a Service reach?
A Service that has been created is not necessarily a Service that does anything useful. The Pods it reaches are read in its EndpointSlice, and kubectl describe svc gives the same information in the Endpoints line.
kubectl get endpointslice -l kubernetes.io/service-name=reponsekubectl describe svc reponseNAME ADDRESSTYPE PORTS ENDPOINTS AGEreponse-fzsrv IPv4 8080 10.244.2.2,10.244.1.2,10.244.4.2 0sCompare the ENDPOINTS column with the Pods' addresses: they are the same, on the targetPort. When the Service's selector matches no Pod, Kubernetes accepts the Service without error, the column shows <unset> and a call fails with Connection refused. The failure is visible only in the endpoints. Then compare the Pods' labels with the selector:
kubectl get pods --show-labelskubectl get svc reponse -o jsonpath='{.spec.selector}'The kubectl get endpoints command still works, but it prints a deprecation warning (v1 Endpoints is deprecated in v1.33+): query endpointslice instead.
How do you read what the cluster DNS answers?
From a Pod, the /etc/resolv.conf file says which DNS it queries and which suffixes it tries. A resolution with the Service's full name separates a DNS problem from a short-name problem.
kubectl -n ws-dns exec client -- cat /etc/resolv.confkubectl -n ws-dns exec client -- nslookup web.ws-dns.svc.cluster.local; echo "rc=$?"search ws-dns.svc.cluster.local svc.cluster.local cluster.localnameserver 10.96.0.10options ndots:5Server: 10.96.0.10Address: 10.96.0.10:53
Name: web.ws-dns.svc.cluster.localAddress: 10.96.54.40
rc=0The nameserver is the ClusterIP of the kube-dns Service, and the search line carries the Pod's namespace first: this is why web is enough in ws-dns and not in another namespace. With the short name, busybox's nslookup can exit with rc=1 while surrounding the correct address with NXDOMAIN lines: do not draw any conclusion about DNS from that.
How do you read and edit the Corefile?
Always read the real configuration rather than assuming that of your distribution. Before any change, keep a copy of the ConfigMap: a syntax error can cut resolution for the whole cluster.
kubectl -n kube-system get configmap coredns -o jsonpath='{.data.Corefile}'kubectl -n kube-system get configmap coredns -o yaml > coredns.sauve.yamlTwo plugins do most of the work: kubernetes answers for internal names, forward passes the rest to the upstream resolvers. To add a static entry, the lesson inserts a hosts block before the kubernetes block, then replaces the ConfigMap:
kubectl -n kube-system get configmap coredns -o jsonpath='{.data.Corefile}' | awk '/^ kubernetes cluster.local/ {print " hosts {"; print " 192.0.2.10 vieux.corp.test"; print " fallthrough"; print " }"} {print}' > Corefile.hostskubectl -n kube-system create configmap coredns --from-file=Corefile=Corefile.hosts --dry-run=client -o yaml | kubectl replace -f -kubectl -n ws-dns exec client -- nslookup vieux.corp.testconfigmap/coredns replacedThe fallthrough keyword lets names absent from the block pass on to the following plugins, including kubernetes. The reload plugin does not act immediately: on kind, a valid change is picked up after 30 seconds to a minute and a half, depending on when the kubelet updates the mounted file. So run nslookup again until you get the answer before concluding that it failed.
To go back to the original configuration, first remove the resourceVersion line from the backup, otherwise the replace is refused with Conflict. This rollback needs the same wait as the change: sed '/resourceVersion/d' coredns.sauve.yaml | kubectl -n kube-system replace -f -.
Which Pod is ready to receive traffic?
A Pod that is not ready leaves the Service's endpoints. The ready, serving and terminating conditions of each endpoint are read in the EndpointSlice, and the Pod's Ready condition in its status.
kubectl get endpointslice -n sondes -l kubernetes.io/service-name=lent -o jsonpath='{.items[0].endpoints[*].conditions}{"\n"}'kubectl get pod -n sondes -l app=lent -o jsonpath='{.items[0].status.conditions[?(@.type=="Ready")].status}{"\n"}'The sondes namespace and the lent Service are those of the probes lesson: replace them with those of the task statement. This reading tells you whether the Service still sends traffic to that Pod.
How do you read the state of a Gateway and its routes?
A Gateway and an HTTPRoute are read in their conditions, not in the output of kubectl get. For a route, Accepted says that it is attached to the Gateway and ResolvedRefs that its backends exist.
kubectl -n ws-gateway get httproute demo -o jsonpath='{range .status.parents[*].conditions[*]}{.type}={.status} ({.reason}){"\n"}{end}'kubectl -n ws-gateway get httproutecurl -sS -i -m 5 -H 'Host: demo.test' http://localhost:8080/a/Accepted=True (Accepted)ResolvedRefs=True (ResolvedRefs)NAME HOSTNAMES AGEdemo ["demo.test"] 3sCheck that both conditions are True: the output of kubectl get httproute shows only the hosts and the age, so it says nothing about the state. The Host header of curl tells the route which name you are asking for, without DNS.
With Cilium, a Gateway can remain without an address. The conditions say so:
kubectl -n vitrine get gateway entree -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}'Accepted=True Accepted: Gateway successfully scheduledProgrammed=False AddressNotAssigned: Gateway waiting for addressAccepted=True says that Cilium has taken the Gateway in charge, and Programmed=False with AddressNotAssigned that it is waiting for an address. This is not a Cilium failure: a CiliumLoadBalancerIPPool provides the addresses, and the Gateway moves to Programmed=True as soon as the Service receives one.
Advanced Traffic Management (20%)
This domain groups the tasks that go beyond a single cluster: announcing routes to a router, choosing where traffic leaves, linking two clusters, routing inference traffic. The commands come from the lessons BGP, egress, ClusterMesh and LLM traffic.
How do you check BGP sessions?
A BGP session is checked from both sides, because each side sees something different. On the router side, show bgp summary shows the state of each neighbor. On the cluster side, cilium bgp peers queries all nodes at once, whereas cilium-dbg shell -- bgp/peers describes only the sessions of the node where the agent runs.
docker exec ckne-frr vtysh -c 'show bgp summary'Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc10.10.50.14 4 65001 3 6 3 0 0 00:00:12 1 3 N/A10.10.50.15 4 65001 3 6 3 0 0 00:00:12 1 3 N/A10.10.50.16 4 65001 3 6 3 0 0 00:00:12 1 3 N/AOn the cluster side, cilium bgp peers lists the sessions of all nodes, one line per node:
cilium bgp peersNode Local AS Peer AS Peer Address Session State Uptime Family Received Advertisednet-cp.lab 65001 65000 10.10.50.200 established 28s ipv4/unicast 4 2net-w1.lab 65001 65000 10.10.50.200 established 28s ipv4/unicast 4 2net-w2.lab 65001 65000 10.10.50.200 established 28s ipv4/unicast 4 2The agent command shows only the sessions of the node where it runs, and the table has no Node column:
kubectl -n kube-system exec ds/cilium -c cilium-agent -- cilium-dbg shell -- bgp/peersInstance Peer Session State Uptime Family Received Accepted Advertisedinstance-65001 routeur-frr established 19s ipv4-unicast 4 0 2In State/PfxRcd, a number in place of a state says that the session is established: the router has received 1 route from each node. The router's output comes before the announcement of a Service and Cilium's outputs come after it, hence Advertised at 2: do not compare counters from one output to another. On the Cilium side, the Session State column must be established on every line. ckne-frr is the name of the router's container in the lesson: replace it with that of your environment.
Write bgp/peers with a forward slash: cilium-dbg shell -- bgp peers fails with unknown command, and the old cilium-dbg bgp peers command is deprecated in Cilium 1.20.
How do you prove that a Pod leaves through the egress gateway?
The proof is taken on the destination side: you look at the source address that the server receives, not at what the Pod believes it sends. A Pod targeted by the CiliumEgressGatewayPolicy leaves with the gateway node's address, and a Pod that is not targeted leaves through its own node.
kubectl -n egress-demo exec sortie-controlee -- wget -qO- -T 5 http://10.10.50.1:8090/visekubectl -n egress-demo exec autre -- wget -qO- -T 5 http://10.10.50.1:8090/non-visesource vue par la destination : 10.10.50.16source vue par la destination : 10.10.50.15The policy applies Pod by Pod, not node by node: the two Pods are on the same node and receive two different sources. The BPF table of the agent on the targeted Pod's node shows the rule:
kubectl -n kube-system get pods -l k8s-app=cilium --field-selector spec.nodeName=net-w1.lab -o namekubectl -n kube-system exec pod/cilium-l984p -c cilium-agent -- cilium-dbg bpf egress listSource IP Destination CIDR Egress IP Gateway IP Egress Ifindex10.244.1.115 10.10.50.1/32 0.0.0.0 10.10.50.16 0Source IP is the address of the targeted Pod and not that of the node, Destination CIDR repeats destinationCIDRs from the policy and Gateway IP is the exit node. Cilium Pod names change at every restart: take those of your cluster with the first command. On the gateway node, the same command also fills in Egress IP, here 10.10.50.16.
How do you check a global Service across two clusters?
cilium clustermesh status says whether the mesh is ready and whether the clusters are linked, and cilium clustermesh connect links two clusters in one command.
cilium clustermesh status --context cluster-1cilium clustermesh connect \ --context cluster-1 --destination-context cluster-2cilium clustermesh status --context cluster-1 --wait --wait-duration 5mBefore the connection, the last line of the first command is No cluster connected, which is the expected state. Afterwards, the lesson expects Connected cluster k8s-cluster-1 <=> k8s-cluster-2! then All 1 nodes are connected to all clusters. A global Service is then proven by its backends and by its answers:
kubectl --context cluster-1 -n kube-system exec ds/cilium -c cilium-agent -- \ cilium-dbg service list | grep -A3 ':80/TCP' | head -16for i in $(seq 1 12); do kubectl --context cluster-1 -n mesh-demo exec client -- wget -qO- -T 3 http://echo.mesh-demo/done | sort | uniq -c9 10.111.185.8:80/TCP ClusterIP 1 => 10.241.0.112:8080/TCP (active) 2 => 10.242.0.83:8080/TCP (active) 8 reponse-de-cluster-1 4 reponse-de-cluster-2The Service has two backends, one per Pod range of each cluster, and the answers come from both clusters. A series of 12 calls only proves that both clusters answer: do not draw a distribution rule from it. The service.cilium.io/global=true annotation makes the Service global, and removing it brings all answers back to the local cluster.
How do you check the routing of LLM inference traffic?
The LLM traffic lesson declares an InferencePool in front of model replicas and routes an HTTPRoute to it. The state reading is the same as for any Gateway: you list the three resources and read their conditions.
kubectl -n inference get inferencepool,gateway,httprouteThe inference namespace is that of the lesson. A saturated replica no longer receives requests once routing is active: the lesson proves it with the answers received, not with the manifest.
Network Security and Policy (25%)
This domain asks you to write a policy and prove that it does what you expect, then to serve an application over HTTPS with a valid certificate. The commands come from the lessons Network Policies, Serve a Gateway and filter at L7 with Cilium and Gateway API over HTTPS.
How do you check what a NetworkPolicy does?
kubectl describe networkpolicy says which Pods the policy selects and what it allows. Read PodSelector first, then Allowing ingress traffic.
kubectl -n ws-np describe networkpolicy db-deny-inkubectl -n ws-np exec backend -- wget -qO- -T 3 http://db.ws-np.svc.cluster.local:5432; echo "rc=$?"Name: db-deny-inNamespace: ws-npSpec: PodSelector: app=db Allowing ingress traffic: <none> (Selected pods are isolated for ingress connectivity) Not affecting egress traffic Policy Types: Ingresswget: download timed outcommand terminated with exit code 1rc=1<none> means that the selected Pods are isolated on ingress, and Not affecting egress traffic that egress remains open. A denied call is not rejected: it times out, with wget: download timed out. An exceeded timeout is therefore the normal symptom of a blocked flow, and it is Hubble or a capture that tells you where it is dropped.
How do you tell an L7 denial from a network denial?
A CiliumNetworkPolicy can filter the HTTP method and path. There are then two kinds of denial, and the return code tells them apart.
kubectl -n vitrine exec client -- curl -s -m 5 -w '\n%{http_code}\n' -X POST http://vitrine/kubectl -n vitrine exec intrus -- curl -s -m 5 -o /dev/null -w '%{http_code}\n' http://vitrine/Access denied
403000command terminated with exit code 28For client, the connection is accepted and it is the request that the proxy refuses: 403 and Access denied. For intrus, no rule allows the connection, which is cut before any HTTP request: curl returns 000 and exit code 28. The policy state is read with kubectl -n vitrine get cnp vitrine-get-seulement -o jsonpath='{.status.conditions}', but Valid only says that Cilium understood it, not that it does what you expect. An L7 policy can also cut the Gateway's own traffic until the ingress entity is allowed, which the lesson details.
How do you check a Gateway's HTTPS certificate?
For an end-to-end proof, a client that trusts only the internal CA must reach the application without the -k option. Get the CA, check the signature of the presented certificate, then call the Gateway with --cacert and --resolve.
kubectl -n cert-manager get secret ca-formation -o jsonpath='{.data.tls\.crt}' | base64 -d > ca-formation.crttimeout 15 openssl s_client -connect 10.111.25.164:443 -servername vitrine.formation.test < /dev/null | openssl x509 > presente.crtopenssl verify -CAfile ca-formation.crt presente.crtcurl -sv --cacert ca-formation.crt --resolve vitrine.formation.test:443:10.111.25.164 https://vitrine.formation.test//tmp/presente.crt: OK* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS< HTTP/2 200vitrineOK says that the presented certificate was signed by this CA, and SSL connection using TLSv1.3 that the handshake succeeded with no certificate error. HTTP/2 200 followed by the body shows that the request went through the Gateway to the application. The -k option is to be avoided: it turns off all verification, so it proves nothing.
Observability (15%)
This domain asks you to find a denied flow, to count it and to find the service that slows a request down. The commands come from the lessons Hubble, CoreDNS and Tracing a slow request with Istio and OpenTelemetry.
How do you find a denied flow with Hubble?
An ingress policy applies where the destination Pod lives: so query the Cilium agent on that Pod's node. --since 1m limits the search to recent denials, because Hubble's buffer also keeps flows older than your test.
kubectl -n kube-system exec <agent-on-net-w1> -c cilium-agent -- \ hubble observe --namespace magasin --verdict DROPPED --since 1m --last 5Nov 15 16:45:38.222: magasin/vitrine:45098 (ID:6605) <> magasin/api:80 (ID:1504) policy-verdict:none INGRESS DENIED (TCP Flags: SYN)Nov 15 16:45:38.222: magasin/vitrine:45098 (ID:6605) <> magasin/api:80 (ID:1504) Policy denied DROPPED (TCP Flags: SYN)Read the source Pod and the called Pod, then the verdict: policy-verdict:none INGRESS DENIED says that no ingress rule allows the flow, and Policy denied DROPPED that the packet was dropped. The denied client here is vitrine. With -o json, the exact reason is the drop_reason_desc field: POLICY_DENIED designates a policy denial; any other reason has no link with a policy.
How do you count denials with a metric?
Hubble exposes its metrics on port 9965 of each agent. With drop:sourceContext=pod;destinationContext=pod, the hubble_drop_total metric carries the source and destination labels. Read it on the API's node:
curl -s http://10.10.50.15:9965/metrics | grep hubble_drop_totalhubble_drop_total{destination="magasin/api",protocol="TCP",reason="POLICY_DENIED",source="magasin/vitrine"} 78The series names the denial: who, toward whom and why. Its value is a counter that only increases as long as the client retries: reading the metric again shortly afterwards gives a larger value, which proves that the denial is still in place. Without the context, the series carry the reason and the protocol but not the Pod. To keep a trace of denials, static export writes the flows to a file on the node:
kubectl -n kube-system exec <agent-on-net-w1> -c cilium-agent -- \ tail -2 /var/run/cilium/hubble/events.logEach node writes its own file, and the log contains Pod names and labels: treat it as sensitive data.
How do you read CoreDNS metrics?
CoreDNS exposes its metrics on port 9153 of the kube-dns Service. The port-forward makes them readable without a collector.
kubectl -n kube-system port-forward svc/kube-dns 9153:9153 &sleep 3curl -s http://localhost:9153/metrics | grep -m5 coredns_dns_requests_totalkill %1coredns_dns_requests_total{family="1",proto="udp",server="dns://:53",type="A",view="",zone="."} 10The metric counts requests by record type. To follow errors, coredns_dns_responses_total counts responses by code, including NXDOMAIN and SERVFAIL, and coredns_dns_request_duration_seconds gives the DNS latency.
How do you find the service that slows a request down?
The client sees the slowness of a chain of calls, but not the service that causes it. In Istio's ambient mode, a waypoint relays a namespace's L7 traffic and creates one span per request. A Telemetry resource sends these spans to the OpenTelemetry collector, then to Jaeger. The lesson Tracing a slow request with Istio and OpenTelemetry sets up the collector and Jaeger; this section repeats the commands that matter on exam day.
First the waypoint, then the wait for its Pod. --wait announces the waypoint as ready while its Pod is not yet: requests sent at that moment fail.
istioctl waypoint apply -n boutique --enroll-namespace --waitkubectl -n boutique wait --for=condition=Ready pod -l gateway.networking.k8s.io/gateway-name=waypoint --timeout=120s✅ waypoint boutique/waypoint applied✅ waypoint boutique/waypoint is ready!✅ namespace boutique labeled with "istio.io/use-waypoint: waypoint"pod/waypoint-c9749c48f-q9rs6 condition metNext, the Telemetry resource that names the otel-tracing provider, declared beforehand in meshConfig.extensionProviders. With randomSamplingPercentage: 100, every request produces a span: this is the right setting to find a slow request.
apiVersion: telemetry.istio.io/v1kind: Telemetrymetadata: name: mesh-default namespace: istio-systemspec: tracing: - providers: - name: otel-tracing randomSamplingPercentage: 100To read the traces from the control-plane node, open a port-forward to Jaeger, send your requests, then query the v3 API with the service name and a time window (RFC 3339 dates in UTC, to be replaced by yours). This reading assumes that the web service copies the traceparent header into its call to api: without that, each hop forms a separate trace, and no trace links the two.
kubectl -n observabilite port-forward svc/jaeger 16686:16686 > /tmp/pf.log 2>&1 &curl -s "http://localhost:16686/api/v3/traces?query.serviceName=web&query.startTimeMin=2026-11-17T19:27:08Z&query.startTimeMax=2026-11-17T19:32:08Z&query.searchDepth=20" | jq -r '[.result.resourceSpans[] | (.resource.attributes[] | select(.key == "service.name") | .value.stringValue) as $svc | .scopeSpans[].spans[] | {trace: .traceId, svc: $svc, span: .name, ms: (((.endTimeUnixNano | tonumber) - (.startTimeUnixNano | tonumber)) / 1000000)}]| group_by(.trace) | .[0] | sort_by(-.ms) | .[]| "\(.ms | floor) ms\t\(.svc)\t\(.span)"'1394 ms waypoint.boutique web.boutique.svc.cluster.local:9898/*1392 ms web POST /echo1392 ms web echoHandler1391 ms web HTTP POST1386 ms waypoint.boutique api.boutique.svc.cluster.local:9898/*0 ms web http.getconnRead from top to bottom, looking for where the time is. The request lasts 1394 ms seen from the waypoint, and the HTTP POST span of web, its call to api, takes 1391: everything else in web fits under 1 ms. The waypoint's span toward api lasts 1386 ms. The slow hop is therefore api, which sends no span itself: its time is read in the span that the waypoint opens to reach it. The .[0] filter takes a single group from the window: narrow the window around the request you are looking for, otherwise you read a trace at random. The output above is cut after six lines.
The waypoint's access log gives the same answer without a tracing tool, but it writes nothing until a Telemetry enables it, with targetRefs to the waypoint Gateway. The lesson shows this resource and how to read its lines.
Which pages should you find in the allowed documentation?
Do not waste time memorizing a long syntax: the exam allows the Kubernetes documentation and blog (kubernetes.io), the Cilium documentation (docs.cilium.io) and the Istio documentation (istio.io/latest/docs). The Gateway API (gateway-api.sigs.k8s.io) and CoreDNS (coredns.io) sites are not in this list. Be able to locate the points below in under a minute. Each line says where to look, not what the syntax contains.
| I must write or read | Where to look |
|---|---|
| A Corefile server block that forwards a domain to a DNS | Kubernetes documentation, page on customizing the DNS service |
| A Gateway or an HTTPRoute | Kubernetes documentation, Gateway API page |
A CiliumNetworkPolicy or an egress policy | Cilium documentation |
| Cilium's BGP configuration | Cilium documentation, BGP section |
A PeerAuthentication or an AuthorizationPolicy | Istio documentation |
Two syntaxes are not found in these documentations: the hosts plugin of the Corefile, described on coredns.io, and the ReferenceGrant, which the Gateway API page of kubernetes.io does not mention. Learn them: the CoreDNS exercise of the CKNE exercises has you write the hosts plugin, and the HTTPS Gateway exercise points to the lesson for the ReferenceGrant, which you must be able to write.
What should you do when a command does not respond as expected?
These symptoms show up as soon as you practice the commands above. For each one, the command given confirms the cause before you go down a false trail.
| Symptom | Likely cause | Command |
|---|---|---|
| A Pod's call times out | Flow dropped, or a name that does not resolve | capture with tcpdump, then read the refusal, loss, DNS table |
A Service answers Connection refused | Selector with no Pod, ENDPOINTS column at <unset> | kubectl get endpointslice -l kubernetes.io/service-name=<service> |
| A name does not resolve after a Corefile change | The reload plugin has not acted yet | run nslookup again for a minute and a half at most on kind |
| The Gateway stays without an address | No address provider | kubectl get gateway, then a CiliumLoadBalancerIPPool |
| The capture shows no packet from the Pod | Wrong node or wrong interface | kubectl get pods -o wide, then ip route get <pod-ip> on the right node |
hubble observe returns nothing | Wrong agent or window too short | query the agent on the called Pod's node, widen --since |
cilium-dbg shell -- bgp peers fails | Space in place of the forward slash | write bgp/peers |
How do you practice against the clock?
Time three tasks on a test cluster: reading a Service's endpoints, capturing a Pod's traffic, finding a denied flow. Note the time of each, then repeat them until you no longer have to look up the command. Durations vary from one cluster to another, so record your own.
kubectl get endpointslice -l kubernetes.io/service-name=reponsesudo timeout 12 tcpdump -i calic7ab51f6efc -nn -U -w /tmp/l2-captures/perte.pcapkubectl -n kube-system exec <agent-on-net-w1> -c cilium-agent -- \ hubble observe --namespace magasin --verdict DROPPED --since 1m --last 5The first task is checked in the ENDPOINTS column, the second by reading the capture back with -r, the third through the source Pod and the DROPPED verdict. If one task takes much longer than the others, redo that one.
Key takeaways
- Read the state before concluding: a Service's endpoints, the conditions of a Gateway and its routes, an agent's table, Hubble flows.
- A flow blocked by a policy times out, it is not rejected: an exceeded timeout is settled with a capture or with
hubble observe --verdict DROPPED. - In a capture, a refusal sends back an
[R.]almost immediately, a loss lets the sameSYNleave again with no answer, a DNS failure sends noSYN. - A Service with no Pod behind it is accepted without error: the
ENDPOINTScolumn at<unset>is the only sign. - CoreDNS's
reloadplugin acts after 30 seconds to a minute and a half on kind: run the resolution again before concluding that it failed. - For BGP, check both sides,
show bgp summaryon the router andcilium bgp peerson the cluster, and writebgp/peerswith a forward slash. - For egress, the proof is taken on the destination side: the source address received says through which node the Pod left.
- A
403comes from the L7 filter of an accepted connection, a000with code 28 from a connection cut before any request. - For HTTPS, validate with
--cacertand--resolve, never with-k.
Test your knowledge
Eight prediction and diagnosis questions on reading a capture, an EndpointSlice, a Gateway, Hubble, BGP and egress, six of which are drawn at random.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Result saved on this device. It will be sent to your account at the next sync. Sync now
Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
Continue the course: CKNE exercises: timed networking practice
A new full quiz with random questions
Work again only on the questions you missed