mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-01-10 17:20:06 +08:00
36 lines
773 B
YAML
36 lines
773 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: adguardhome-origin
|
||
|
labels:
|
||
|
app.kubernetes.io/name: adguardhome-origin
|
||
|
spec:
|
||
|
volumes:
|
||
|
- name: configmap
|
||
|
configMap:
|
||
|
name: origin-conf
|
||
|
- name: conf
|
||
|
emptyDir: { }
|
||
|
|
||
|
initContainers:
|
||
|
- name: init
|
||
|
image: busybox
|
||
|
volumeMounts:
|
||
|
- mountPath: /opt/adguardhome/configmap
|
||
|
name: configmap
|
||
|
- mountPath: /opt/adguardhome/conf
|
||
|
name: conf
|
||
|
command:
|
||
|
- cp
|
||
|
- /opt/adguardhome/configmap/AdGuardHome.yaml
|
||
|
- /opt/adguardhome/conf
|
||
|
|
||
|
containers:
|
||
|
- name: adguardhome
|
||
|
image: adguard/adguardhome:latest
|
||
|
volumeMounts:
|
||
|
- mountPath: /opt/adguardhome/conf
|
||
|
name: conf
|
||
|
ports:
|
||
|
- containerPort: 3000
|