F0105 14:23:27.663328 1 main.go:302] IngressClass with name nginx has an invalid Spec.Controller k8s.io/ingress-nginx

1/5/2022

Got this error while creating pods from nginx-ingress controller. The ingress-class.yaml file structure is as follows-

apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
  name: nginx
  # annotations:
  #   ingressclass.kubernetes.io/is-default-class: "true"
spec:
  controller: k8s.io/ingress-nginx
-- Sourav Mukherjee
kubernetes
load-balancing
nginx
nginx-ingress

0 Answers