CKAD Mock Exam 2 Q4 is broken; the ingress-nginx admission controller is refusing requests. Sample use question, of two I’ve seen in the last 12 hours:
Mock Exam 2 - Ingress doesn’t work
The 4th question in Mock Exam 2 is broken. I was unable to create Ingress because of the following error:
controlplane ~ ➜ k apply -f 4solution.yml
Error from server (InternalError): error when creating “4solution.yml”: Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”: failed to call webhook: Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.103.129.253:443: connect: connection refused
This must be an intermittent issue. I have completed that question successfully
controlplane ~ ➜ k create ingress my-video-service --annotation nginx.ingress.kubernetes.io/rewrite-target=/ --rule ckad-mock-exam-solution.com/video=my-video-service:8080
ingress.networking.k8s.io/my-video-service created
controlplane ~ ➜ curl http://ckad-mock-exam-solution.com:30093/video
<!doctype html>
<title>Hello from Flask</title>
<body style="background: #30336b;">
<div style="color: #e4e4e4;
text-align: center;
height: 90px;
vertical-align: middle;">
<img src="https://res.cloudinary.com/cloudusthad/image/upload/v1547052431/video.jpg">
</div>
</body>
controlplane ~ ➜
Yeah, it works now. The failure of the admission controller would occur when k create ing ...
was run (I saw this as well about 8 hours ago), but right now, the resource gets created without a fuss:
controlplane ~ ➜ k create ing testing --annotation nginx.ingress.kubernetes.io/rewrite-target=/ --rule ckad-mock-exam-solution.com/video=my-video-service:8080
ingress.networking.k8s.io/testing created