K3s-cluster/adguard/ingress.yaml

39 lines
839 B
YAML
Raw Normal View History

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: stripprefix-adguard
spec:
stripPrefix:
prefixes:
- /
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: adguard-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
traefik.ingress.kubernetes.io/router.middlewares: "default-stripprefix-adguard@kubernetescrd"
spec:
rules:
- host: adguard.localhost
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: adguard-svc
port:
number: 80
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: adguard-dns
port:
number: 53