diff --git a/ingress/values.yaml b/ingress/values.yaml index 1c06be3..5d1683d 100644 --- a/ingress/values.yaml +++ b/ingress/values.yaml @@ -1,6 +1,7 @@ controller: + enableSnippets: true hostNetwork: true - setAsDefaultIngress: true + setAsDefaultIngress: true service: create: false kind: daemonset \ No newline at end of file diff --git a/prometheus/ingress.yaml b/prometheus/ingress.yaml index 54cf08b..6b1be50 100644 --- a/prometheus/ingress.yaml +++ b/prometheus/ingress.yaml @@ -9,6 +9,10 @@ metadata: cert-manager.io/cluster-issuer: letsencrypt-prod acme.cert-manager.io/http01-edit-in-place: "true" ingress.kubernetes.io/ssl-redirect: "false" + nginx.org/server-snippets: | + location ^~ /.well-known/acme-challenge/ { + auth_basic off; + } nginx.org/basic-auth-secret: prometheus-basic-auth-secret #nginx.org/ssl-services: "prometheus-server" spec: @@ -38,6 +42,10 @@ metadata: cert-manager.io/cluster-issuer: letsencrypt-prod acme.cert-manager.io/http01-edit-in-place: "true" ingress.kubernetes.io/ssl-redirect: "false" + nginx.org/server-snippets: | + location ^~ /.well-known/acme-challenge/ { + auth_basic off; + } nginx.org/basic-auth-secret: prometheus-basic-auth-secret #nginx.org/ssl-services: "prometheus-server" spec: