Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not specify ingress class for docker repository #235

Open
dangelkov-skyfi opened this issue Sep 14, 2022 · 0 comments
Open

can not specify ingress class for docker repository #235

dangelkov-skyfi opened this issue Sep 14, 2022 · 0 comments

Comments

@dangelkov-skyfi
Copy link

I have multiple (two) nginx ingress controllers running in our k8s cluster in google cloud. One is internal ingress with internal load balancer and the other is external one. for ingress in the chart I have

ingress:
  enabled: true
  ingressClassName: nginx-internal
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "0"
    # kubernetes.io/ingress.class: nginx-internal
  hostPath: /
  hostRepo: nexus.domain.com
  tls:
    - secretName: secret-name
      hosts:
        - nexus.domain.com

So far so good, when I deploy with that ingress settings everything works as expected and I can access the web interface with no problem.

The problem comes when I enable docker registry like this:

  docker:
    enabled: true
    registries:
      - host: docker.domain.com
        port: 5000
        secretName: secret-name

the above creates another ingress but the problem is that I can not specify the ingress class for it and I can not access it.

I tried to set one of my ingress classes as default but it didn't work.

My k8s version is 1.22 so I can not use annotations for this I can only use ingressClass to specify the desired ingress class to use.

Could you please help with this or possibly upgrade the chart so I can specify the ingress class in the docker configuration part.

Thank you in advance for your time

@dangelkov-skyfi dangelkov-skyfi changed the title k8s internal ingress docker repository can not specify internal ingress for docker repository Sep 14, 2022
@dangelkov-skyfi dangelkov-skyfi changed the title can not specify internal ingress for docker repository can not specify ingress class for docker repository Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant