JG-mirror/Kubernetes/Traefik-External-Service/ingress.yaml

30 lines
666 B
YAML

---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: proxmox
namespace: default
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`www.proxmox.jimsgarage.co.uk`)
kind: Rule
services:
- name: proxmox
port: 8006
scheme: https
passHostHeader: true
- match: Host(`proxmox.jimsgarage.co.uk`)
kind: Rule
services:
- name: proxmox
port: 8006
scheme: https
passHostHeader: true
middlewares:
- name: default-headers
tls:
secretName: jimsgarage-tls