mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2024-11-15 12:31:19 +08:00
37 lines
852 B
YAML
37 lines
852 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: adguardhome-origin
|
|
namespace: {{ $.Release.Namespace }}
|
|
labels:
|
|
app.kubernetes.io/name: adguardhome-origin
|
|
bakito.net/adguardhome-sync: 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
|