Create ingress.yaml

This commit is contained in:
tehNooB 2023-10-20 12:44:02 +01:00 committed by GitHub
parent 1a08035f24
commit d99cde953d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,26 @@
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: pihole
namespace: pihole
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`www.pihole3.jimsgarage.co.uk`) # change to your domain
kind: Rule
services:
- name: pihole
port: 80
- match: Host(`pihole3.jimsgarage.co.uk`) # change to your domain
kind: Rule
services:
- name: pihole
port: 80
middlewares:
- name: default-headers
tls:
secretName: jimsgarage-tls # change to your cert name