Create an ingress resource nginx-ingress-cka04-svcn to load balance the incoming traffic with the following specifications:

For this I have written

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-ingress-cka04-svcn
annotations:
ingress.kubernetes.io/ssl-redirect: “false”
spec:
rules:

  • http:
    paths:
    • path: /
      pathType: Prefix
      backend:
      service:
      name: nginx-service-cka04-svcn
      port:
      number: 80

It says ssl-redirect" is set to "false"? specified as wrong

But when i copied the solution given it worked

kubectl apply -f - << EOF
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-ingress-cka04-svcn
annotations:
ingress.kubernetes.io/ssl-redirect: “false”
spec:
rules:

  • http:
    paths:
    • path: /
      pathType: Prefix
      backend:
      service:
      name: nginx-service-cka04-svcn
      port:
      number: 80
      EOF

Hi @nikhiljiddigi

Can you please provide us the link to the task ?

Regard

hi nikhiljiddigi,
do you mind telling me how did you test if the ingress is working?
i did the same thing, it says everything was created correctly but “ingress not working”