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

fix: grafana ingress class #85

Merged
merged 1 commit into from
Apr 17, 2024
Merged

fix: grafana ingress class #85

merged 1 commit into from
Apr 17, 2024

Conversation

kvaps
Copy link
Member

@kvaps kvaps commented Apr 17, 2024

Grafana uses default ingress class nginx specified in ClusterIssuer resource, we need to overwrite it to correct ingress class from namespace annotation

@kvaps kvaps requested a review from gecube April 17, 2024 17:30
@@ -68,6 +68,7 @@ spec:
metadata:
annotations:
kubernetes.io/ingress.class: "{{ $ingress }}"
acme.cert-manager.io/http01-ingress-class: "{{ $ingress }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was sure that the ingress class would be taken from ingressClassName field. Are you sure that it is necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I also tried to omit ingressClass from cluster issuer, unfortunately it didn't work.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ingressClass from cluster issuer, unfortunately it didn't work.

it should be only in Cluster Issuer, right?

Copy link
Member Author

@kvaps kvaps Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, when cluster issure missing the section

    solvers:
    - http01:
        ingress:
          class: nginx

cert-manager reports an error:

Failed to determine a valid solver configuration for the set of domains on the Order: no configured challenge solvers can be used for this challenge

even with this annotation

@@ -68,6 +68,7 @@ spec:
metadata:
annotations:
kubernetes.io/ingress.class: "{{ $ingress }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could bravely remove it - it is obsolete

Copy link
Member Author

@kvaps kvaps Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, done

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
@kvaps kvaps force-pushed the grafana-ingress-class branch from 773befa to 8fcaed4 Compare April 17, 2024 18:34
@kvaps kvaps requested a review from gecube April 17, 2024 18:34
@kvaps kvaps merged commit 2d21ed6 into main Apr 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants