[ingress-nginx] missing resources (ingressClass, services, maybe more) #9936
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/feature
Categorizes issue or PR as related to a new feature.
After deploying a new cluster with kubespray and ingress-nginx enabled, there is no
IngressClass
resource created.The IngressClass resource was introduced in 1.18, and the annotation
kubernetes.io/ingress.class
is deprecated these days.It seems a while back the
ingress-nginx
version in kubespray was updated, but the new resources introduced weren't copied over.Additionally there are also multiple services that would normally be created if one uses the official deployment files: e.g.
https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/baremetal/deploy.yaml or https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yaml
I think adding at least the
IngressClass
would be useful, adding the services will be more work and require some changes to the deployment which will make it harder to ensure not to brake existing clusters.Maybe instead of introducing the services, it would be an option to provide a way to deploy
ingress-nginx
through thehelm-apps
role, and just add theIngressClass
to the existing role to move away from the deprecated annotation.Environment:
Proxmox / Baremetal
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Ansible node:
Linux 5.10.0-21-amd64 x86_64 / PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
Kubernetes Master & Workers:
Linux 6.1.0-6-amd64 x86_64 PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
Kubespray version (commit) (
git rev-parse --short HEAD
):3450865
Network plugin used: Cilium
Command used to invoke ansible:
ansible-playbook -i inventory/mycluster/hosts.yml cluster.yml -b -v
Output of ansible run:
Success
The text was updated successfully, but these errors were encountered: