mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 23:40:19 +00:00
28 lines
655 B
YAML
28 lines
655 B
YAML
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: portainer
|
|
namespace: portainer
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik-external
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`www.portainer.yourdomain.com`) # change me
|
|
kind: Rule
|
|
services:
|
|
- name: portainer
|
|
port: 9443
|
|
- match: Host(`portainer.yourdomain.com`) # change me
|
|
kind: Rule
|
|
services:
|
|
- name: portainer
|
|
port: 9443
|
|
scheme: https
|
|
passHostHeader: true
|
|
middlewares:
|
|
- name: default-headers
|
|
tls:
|
|
secretName: yourdomain-tls # change me
|