Kubernetes.K3s.installLog/services/PiHole/deployment-pihole.yaml

42 lines
958 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: pihole
namespace: pihole
labels:
app: pihole
spec:
replicas: 1
selector:
matchLabels:
app: pihole
template:
metadata:
labels:
app: pihole
spec:
containers:
- name: pihole
image: pihole/pihole
ports:
- name: web
containerPort: 80
- name: dns-tcp
containerPort: 53
protocol: TCP
- name: dns-udp
containerPort: 53
protocol: UDP
volumeMounts:
- mountPath: /etc/pihole
name: flexvolsmb-pihole-config
- mountPath: /etc/dnsmasq.d
name: flexvolsmb-pihole-data
volumes:
- name: flexvolsmb-pihole-config
persistentVolumeClaim:
claimName: flexvolsmb-pihole-config
- name: flexvolsmb-pihole-data
persistentVolumeClaim:
claimName: flexvolsmb-pihole-data