JG-mirror/Vaultwarden/Kubernetes/ingress.yaml
2024-07-08 11:19:54 +01:00

27 lines
No EOL
609 B
YAML

---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: vaultwarden
namespace: vaultwarden
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`www.vaultwarden.yourdomain.co.uk`)
kind: Rule
services:
- name: vaultwarden
port: 80
- match: Host(`vaultwarden.yourdomain.co.uk`)
kind: Rule
services:
- name: vaultwarden
port: 80
middlewares:
- name: default-headers
- name: local-ipwhitelist
tls:
secretName: yourdomain-tls