33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
annotations:
|
||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||
|
external-dns.alpha.kubernetes.io/target: home.martyn.berlin
|
||
|
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 - user martyn'
|
||
|
labels:
|
||
|
app: karaoke-eternal
|
||
|
{{- include "karaoke-eternal.labels" . | nindent 4 }}
|
||
|
name: {{ include "karaoke-eternal.fullname" . }}
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: karaoke.martyn.berlin
|
||
|
http:
|
||
|
paths:
|
||
|
- backend:
|
||
|
service:
|
||
|
name: {{ include "karaoke-eternal.fullname" . }}
|
||
|
port:
|
||
|
number: 80
|
||
|
path: /
|
||
|
pathType: Prefix
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- karaoke.martyn.berlin
|
||
|
secretName: karaoke-tls
|