Ingress is not getting address

Bug #2040268 reported by Ebrar Leblebici
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Kubernetes Worker Charm
New
Undecided
Unassigned

Bug Description

Hi,

It seems after we changed the image version with this commit (https://github.com/charmed-kubernetes/charm-kubernetes-worker/commit/dc5386cc6a93ed19afa54cc6b8b11d7eeb43a8a2) the ingress resources are not getting an address with this new version of the image.

I reproduced the issue by deploying a Charmed Kubernetes 1.28.3 and creating an ingress object by using the yaml file below:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: cafe-ingress
spec:
  ingressClassName: nginx-ingress-controller
  rules:
  - host: cafe.example.com
    http:
      paths:
      - path: /tea
        pathType: Prefix
        backend:
          service:
            name: tea-svc
            port:
              number: 80
      - path: /coffee
        pathType: Prefix
        backend:
          service:
            name: coffee-svc
            port:
              number: 80

And it could not get the address of the nginx-ingress-controller pod:

ubuntu@birru2-bastion:~$ kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
cafe-ingress nginx-ingress-controller cafe.example.com 80 70m

Then I changed the container image from "rocks.canonical.com:443/cdk/ingress-nginx/controller:v1.6.4" to "rocks.canonical.com:443/cdk/ingress-nginx/controller:v1.2.0".

kubectl edit daemonset nginx-ingress-controller-kubernetes-worker -n ingress-nginx-kubernetes-worker

It recycled the pod and after the creation of the new ingress controller pod, the ingress got the IP:

ubuntu@birru2-bastion:~$ kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
cafe-ingress nginx-ingress-controller cafe.example.com 10.5.0.114 80 76m

Regards,
Ebrar

Ebrar Leblebici (birru2)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.