Skip to content

Instantly share code, notes, and snippets.

@junoteam
Created April 13, 2020 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junoteam/40036924e9b43bcc52d3951f327451ac to your computer and use it in GitHub Desktop.
Save junoteam/40036924e9b43bcc52d3951f327451ac to your computer and use it in GitHub Desktop.
jenkins-ingress.yml
# 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