Hi All, This definition is for Mock Exam Q4. The question is to create an ingres . . .

Anish Nagaraj:
Hi All, This definition is for Mock Exam Q4. The question is to create an ingress for a service. I am unable to find why this is not working. Could somebody help please to find what is wrong with this defenition. ?

apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress
metadata:
  name: ingress-my-video-service
spec:
  rules:
  - host: "<http://ckad-mock-exam-solution.com|ckad-mock-exam-solution.com>"
    http:
      paths:
      - pathType: Prefix
        path: "/video"
        backend:
          service:
            name: my-video-service
            port:
              number: 30093

Tharanath:
you need to give the port number as 8080

Tharanath:
bcoz you need to provide the service name and service port which is 8080. you can check this by running controlplane $ kubectl describe svc my-video-service
Name: my-video-service
Namespace: default
Labels: &lt;none&gt;
Annotations: &lt;none&gt;
Selector: app=webapp-video
Type: ClusterIP
IP: 10.104.64.123
Port: &lt;unset&gt; 8080/TCP
TargetPort: 8080/TCP
Endpoints: 10.244.5.3:8080
Session Affinity: None
Events: &lt;none&gt;

Tharanath:

Anish Nagaraj:
@Tharanath: I realized it son after posting. However thank you so much!