Add Kubernetes configurations for Pi-hole deployment, services, and secrets
This commit is contained in:
38
cluster/apps/pihole/pihole-svc.yml
Normal file
38
cluster/apps/pihole/pihole-svc.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pihole-tcp-service
|
||||
namespace: default
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: pihole
|
||||
ports:
|
||||
- port: 8585
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
name: web
|
||||
- port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
name: dns-tcp
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pihole-udp-service
|
||||
namespace: default
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: pihole
|
||||
ports:
|
||||
- port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
name: dns-udp
|
||||
- port: 67
|
||||
targetPort: 67
|
||||
protocol: UDP
|
||||
name: dhcp
|
||||
Reference in New Issue
Block a user