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

No ingressClassName in helm chart #1895

Open
gecube opened this issue Apr 8, 2024 · 3 comments
Open

No ingressClassName in helm chart #1895

gecube opened this issue Apr 8, 2024 · 3 comments
Labels
helm Related to helm and app-catalog

Comments

@gecube
Copy link

gecube commented Apr 8, 2024

Good day!

I am trying to install headlamp in test lab env.

I found that there is missing ingressClassName in helm chart in ingress definition. It means that there must be present default ingress class name set up in the cluster what is not the default behaviour.

So with naive installation I have:

kubectl get ing -A
NAMESPACE   NAME       CLASS    HOSTS                               ADDRESS   PORTS     AGE
headlamp    headlamp   <none>   headlamp.dashboard-test.gecube.eu             80, 443   54s

But it should be something like

kubectl get ing -A
NAMESPACE   NAME       CLASS    HOSTS                               ADDRESS   PORTS     AGE
headlamp    headlamp   nginx    headlamp.dashboard-test.gecube.eu             80, 443   54s

Also I found very counter-intuitive how to fill the ingress key in values.yaml It has completely different approach than I have seen before - particularly in so well known charts like from bitnami or even minio-operator...

@illume illume added the helm Related to helm and app-catalog label Apr 9, 2024
@gecube
Copy link
Author

gecube commented Apr 9, 2024

Temporarily fixed with FluxCD helm release patch:

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: headlamp
  namespace: headlamp
spec:
  chart:
    spec:
      chart: headlamp
      sourceRef:
        kind: HelmRepository
        name: headlamp
      version: '0.20.0'
  interval: 1m0s
  values:
    replicaCount: 1
...
    env:
    - name: KUBERNETES_SERVICE_HOST
      value: "kube-oidc-proxy.console.svc.cluster.local."
    - name: KUBERNETES_SERVICE_PORT
      value: "443"
    ingress:
      enabled: true
      hosts:
      - host: headlamp.dashboard-test.gecube.eu
        paths:
        - path: /
          type: Prefix
      tls:
      - secretName: headlamp-tls
        hosts:
          - headlamp.dashboard-test.gecube.eu
      annotations:
        cert-manager.io/cluster-issuer: letsencrypt-http01-nginx-issuer
  postRenderers:
    - kustomize:
        patches:
          - target:
              kind: Ingress
              name: headlamp
            patch: |
              - op: add
                path: /spec/ingressClassName
                value: nginx
          - target:
              kind: Deployment
              name: headlamp
            patch: |
              - op: add
                path: /spec/template/spec/containers/0/args/-
                value: -insecure-ssl

@ccolic
Copy link
Contributor

ccolic commented Apr 26, 2024

I have submitted a PR which fixes this. See #1932

@gecube
Copy link
Author

gecube commented Apr 26, 2024

@ccolic LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helm Related to helm and app-catalog
Projects
None yet
Development

No branches or pull requests

3 participants