This commit is contained in:
Teddy 2026-06-07 18:12:15 +00:00
parent 0c3ec81922
commit eeb79232c2
6 changed files with 439 additions and 0 deletions

63
adguard/adguard.yaml Normal file
View file

@ -0,0 +1,63 @@
apiVersion: v1
kind: Namespace
metadata:
name: adguard
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: adguard-work-pvc
namespace: adguard
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 2Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: adguard-conf-pvc
namespace: adguard
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: adguard
namespace: adguard
spec:
replicas: 1
selector:
matchLabels:
app: adguard
template:
metadata:
labels:
app: adguard
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: adguard
image: adguard/adguardhome:latest
volumeMounts:
- name: adguard-work
mountPath: /opt/adguardhome/work
- name: adguard-conf
mountPath: /opt/adguardhome/conf
volumes:
- name: adguard-work
persistentVolumeClaim:
claimName: adguard-work-pvc
- name: adguard-conf
persistentVolumeClaim:
claimName: adguard-conf-pvc