CKAD - Mock Exam 2 Q 4

Seems like I am missing something on the Ingress resource definition. A nudge in the right direction would be much appreciated.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-svc
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:

  • host: ckad-mock-exam-solution.com
    http:
    paths:
    • path: /video
      pathType: Prefix
      backend:
      service:
      name: my-video-service
      port:
      number: 30093

hi @kcnud,

You need to check the port that the service my-video-service using, you can use the kubectl get svc command and check the port of the service.

The port 30093 is the NodePort that is used by the ingress, you need it to test if the ingress set up correctly.

Thank you, working as intended now. Appreciate it!