Add pihole endpoint, ingress, and service configurations

This commit is contained in:
2026-01-21 05:13:23 +05:30
parent 75cca24afb
commit 31f05ccacd
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Endpoints
metadata:
name: pihole
namespace: external-resources
subsets:
- addresses:
- ip: 192.168.1.19
ports:
- name: http
protocol: TCP
port: 80

View File

@@ -0,0 +1,27 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pihole-ingress
namespace: external-resources
annotations:
cert-manager.io/cluster-issuer: letsencrypt-cloudflare
traefik.ingress.kubernetes.io/router.middlewares: tools-authelia@kubernetescrd
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
ingressClassName: traefik
tls:
- hosts:
- pihole.akshun-lab.cc
secretName: pihole-tls
rules:
- host: pihole.akshun-lab.cc
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: pihole
port:
number: 80

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: pihole
namespace: external-resources
spec:
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
clusterIP: None