Fix basicauth issue (finaly)
This commit is contained in:
parent
7cc71f7ccd
commit
02a123fe1f
2 changed files with 18 additions and 13 deletions
|
@ -68,10 +68,12 @@ metadata:
|
||||||
name: example-ingress
|
name: example-ingress
|
||||||
namespace: example
|
namespace: example
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
spec.ingressClassName: "nginx"
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
acme.cert-manager.io/http01-edit-in-place: "true"
|
acme.cert-manager.io/http01-edit-in-place: "false"
|
||||||
ingress.kubernetes.io/ssl-redirect: "false"
|
ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
# Use for Basic auth:
|
||||||
|
#nginx.org/basic-auth-secret: example-basic-auth-secret
|
||||||
# Use the following annotation if the backend only speaks HTTPS (fill out the service name accordingly):
|
# Use the following annotation if the backend only speaks HTTPS (fill out the service name accordingly):
|
||||||
#nginx.org/ssl-services: "example-service"
|
#nginx.org/ssl-services: "example-service"
|
||||||
spec:
|
spec:
|
||||||
|
@ -89,4 +91,15 @@ spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- example.apps.yolokube.de
|
- example.apps.yolokube.de
|
||||||
secretName: example-cert
|
secretName: example-cert
|
||||||
|
# Use for Basic auth:
|
||||||
|
#---
|
||||||
|
#kind: Secret
|
||||||
|
#metadata:
|
||||||
|
# name: example-basic-auth-secret
|
||||||
|
# namespace: example
|
||||||
|
#apiVersion: v1
|
||||||
|
#type: nginx.org/htpasswd
|
||||||
|
#stringData:
|
||||||
|
# htpasswd: |
|
||||||
|
#test:$apr1$2XMU6EMv$f1MJ7zxqTS079YsB7Z.CX/
|
|
@ -7,12 +7,8 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
acme.cert-manager.io/http01-edit-in-place: "true"
|
acme.cert-manager.io/http01-edit-in-place: "false"
|
||||||
ingress.kubernetes.io/ssl-redirect: "false"
|
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/basic-auth-secret: prometheus-basic-auth-secret
|
||||||
#nginx.org/ssl-services: "prometheus-server"
|
#nginx.org/ssl-services: "prometheus-server"
|
||||||
spec:
|
spec:
|
||||||
|
@ -40,12 +36,8 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
acme.cert-manager.io/http01-edit-in-place: "true"
|
acme.cert-manager.io/http01-edit-in-place: "false"
|
||||||
ingress.kubernetes.io/ssl-redirect: "false"
|
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/basic-auth-secret: prometheus-basic-auth-secret
|
||||||
#nginx.org/ssl-services: "prometheus-server"
|
#nginx.org/ssl-services: "prometheus-server"
|
||||||
spec:
|
spec:
|
||||||
|
|
Loading…
Reference in a new issue