64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
namespace: pihole
|
||
|
name: pihole
|
||
|
annotations:
|
||
|
reloader.stakater.com/auto: "true"
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: pihole
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: pihole
|
||
|
annotations:
|
||
|
k8s.v1.cni.cncf.io/networks: '[{
|
||
|
"namespace": "cascade",
|
||
|
"name": "br0-static",
|
||
|
"ips": ["172.16.1.8/12"]
|
||
|
}]'
|
||
|
spec:
|
||
|
hostname: pihole
|
||
|
dnsConfig:
|
||
|
nameservers:
|
||
|
- 127.0.0.1
|
||
|
searches:
|
||
|
- cascade.strudelline.net
|
||
|
dnsPolicy: "ClusterFirstWithHostNet"
|
||
|
containers:
|
||
|
- image: pihole/pihole:latest
|
||
|
name: pihole
|
||
|
env:
|
||
|
- name: TZ
|
||
|
value: America/Chicago
|
||
|
- name: PIHOLE_BASE
|
||
|
value: /data
|
||
|
- name: VIRTUAL_HOST
|
||
|
value: pihole.strudelline.net
|
||
|
- name: PIHOLE_DOMAIN
|
||
|
value: cascade.strudelline.net
|
||
|
volumeMounts:
|
||
|
- name: pihole-etc
|
||
|
mountPath: /etc/pihole
|
||
|
- name: pihole-dnsmasq
|
||
|
mountPath: /etc/dnsmasq.d/05-custom-config.conf
|
||
|
subPath: 05-custom-config.conf
|
||
|
- name: pihole-data
|
||
|
mountPath: /data
|
||
|
restartPolicy: Always
|
||
|
volumes:
|
||
|
- name: pihole-etc
|
||
|
persistentVolumeClaim:
|
||
|
claimName: pihole-etc
|
||
|
- name: pihole-dnsmasq
|
||
|
configMap:
|
||
|
name: pihole-dnsmasq
|
||
|
- name: pihole-data
|
||
|
persistentVolumeClaim:
|
||
|
claimName: pihole-data
|