-
Notifications
You must be signed in to change notification settings - Fork 0
/
pihole.yml
40 lines (40 loc) · 828 Bytes
/
pihole.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: apps/v1
kind: Deployment
metadata:
name: pihole-deployment
labels:
app: pihole
purpose: example
spec:
replicas: 1
selector:
matchLabels:
app: pihole
purpose: dns
template:
metadata:
labels:
app: pihole
purpose: dns
spec:
hostAliases:
- ip: "192.168.10.1"
hostnames:
- "router.example.net"
- ip: "192.168.10.10"
hostnames:
- "printer.example.net"
containers:
- name: pihole-dns
image: pihole/pihole:4.2.2_armhf
env:
- name: TZ
value: 'America/Denver'
- name: WEBPASSWORD
value: password
ports:
- containerPort: 53
protocol: UDP
- containerPort: 80
- containerPort: 443
- containerPort: 67