Created
April 13, 2020 11:28
-
-
Save junoteam/40036924e9b43bcc52d3951f327451ac to your computer and use it in GitHub Desktop.
jenkins-ingress.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jenkins-ingress | |
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: jenkins | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
# type of authentication | |
nginx.ingress.kubernetes.io/auth-type: basic | |
# name of the secret that contains the user/password definitions | |
nginx.ingress.kubernetes.io/auth-secret: basic-auth | |
# message to display with an appropriate context why the authentication is required | |
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - mothes' | |
spec: | |
tls: | |
- hosts: | |
- jenkins.linuxspace.org | |
secretName: jenkins-tls | |
rules: | |
- host: jenkins.linuxspace.org | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: jenkins | |
servicePort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment