1
0
Fork 0

enabled basic auth on jenkins prod

This commit is contained in:
Christian Kühnel 2019-10-09 18:44:40 +02:00
parent a9b250519c
commit ce9e33f696

View file

@ -15,7 +15,37 @@
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: nginx-ingress-prod name: nginx-ingress-prod-jenkins
namespace: jenkins
annotations:
# static IP assignment not working. Not sure why.
kubernetes.io/ingress.global-static-ip-name: "web-static-ip"
kubernetes.io/ingress.class: "nginx"
cert-manager.io/issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: proxy-auth
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required - LLVM pre-merge checks"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Authorization $remote_user;
spec:
tls:
- secretName: jenkins-prod-tls
hosts:
- jenkins.llvm-merge-guard.org
rules:
- host: jenkins.llvm-merge-guard.org
http:
paths:
- backend:
serviceName: jenkins-ui
servicePort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-ingress-prod-results
namespace: jenkins namespace: jenkins
annotations: annotations:
# static IP assignment not working. Not sure why. # static IP assignment not working. Not sure why.
@ -27,10 +57,6 @@ spec:
- secretName: results-prod-tls - secretName: results-prod-tls
hosts: hosts:
- results.llvm-merge-guard.org - results.llvm-merge-guard.org
- secretName: jenkins-prod-tls
hosts:
- jenkins.llvm-merge-guard.org
rules: rules:
- host: results.llvm-merge-guard.org - host: results.llvm-merge-guard.org
http: http:
@ -38,13 +64,6 @@ spec:
- backend: - backend:
serviceName: nginx-results serviceName: nginx-results
servicePort: 80 servicePort: 80
- host: jenkins.llvm-merge-guard.org
http:
paths:
- backend:
serviceName: jenkins-ui
servicePort: 8080
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress