mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-16 18:02:55 +02:00
33 lines
971 B
YAML
33 lines
971 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: rowing-webcam-ingress
|
|
namespace: default
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
|
|
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
|
# Add basic auth to protect the webcam
|
|
# nginx.ingress.kubernetes.io/auth-type: basic
|
|
# nginx.ingress.kubernetes.io/auth-secret: rowing-webcam-auth
|
|
# nginx.ingress.kubernetes.io/auth-realm: "Rowing Club Webcam"
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: mist.hensen.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: rowing-webcam-service
|
|
port:
|
|
number: 80
|
|
tls:
|
|
- hosts:
|
|
- mist.hensen.io
|
|
secretName: mist-hensen-io-tls # Make sure this TLS secret exists
|