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
- path: /
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
- path: /