Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No ingress address on minikube Kubernetes cluster with nginx ingress controller

I've got the following:

ingress.yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: abcxyz
  annotations:
    kubernetes.io/ingress.class: nginx
spec:
  rules:
  - host: abcxyz
    http:
      paths:
      - path: /a/
        backend:
          serviceName: service-a
          servicePort: 80
      - path: /b/
        backend:
          serviceName: service-b
          servicePort: 80

Output of kubectl describe ingress abcxyz:

Name:             abcxyz
Namespace:        default
Address:          
Default backend:  default-http-backend:80 (<none>)
Rules:
  Host    Path  Backends
  ----    ----  --------
  abcxyz  
          /a/   service-a:80 (<none>)
          /b/   service-b:80 (<none>)
Annotations:
Events:
  Type    Reason  Age                From                      Message
  ----    ------  ----               ----                      -------
  Normal  CREATE  16m                nginx-ingress-controller  Ingress default/abcxyz
  Normal  UPDATE  12m (x2 over 15m)  nginx-ingress-controller  Ingress default/abcxyz

Why is the address empty? I've installed the 'nginx ingress controller' through helm using helm install stable/nginx-ingress - and all of it's pods relevent seem to be running fine.

How can I provide access to the ingress?

like image 911
Chris Stryczynski Avatar asked Sep 15 '25 16:09

Chris Stryczynski


1 Answers

The solution for me was:

minikube addons enable ingress
like image 126
Mirko Conti Avatar answered Sep 17 '25 12:09

Mirko Conti