Update services/adguard/app.yaml
This commit is contained in:
@@ -30,21 +30,47 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: adguard
|
- name: adguard
|
||||||
image: adguard/adguardhome:v0.107.79 # pin de tag! (Renovate houdt ze bij)
|
image: adguard/adguardhome:v0.107.79 # pin de tag! (Renovate houdt ze bij)
|
||||||
ports: [{containerPort: 80}]
|
env:
|
||||||
volumeMounts: [{name: config, mountPath: /opt/AdGuardHome}]
|
- name: AGH_CONFIG
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: adguard-config
|
||||||
|
key: AdGuardHome.yaml
|
||||||
|
ports:
|
||||||
|
- containerPort: 53 #dns
|
||||||
|
name: dns
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 3000 #initial setup
|
||||||
|
name: http-initial
|
||||||
|
- containerPort: 80 #web gui
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- name: adguard-config
|
||||||
|
mountPath: /opt/adguardhome/work
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: adguard-config
|
||||||
persistentVolumeClaim: {claimName: adguard-config}
|
persistentVolumeClaim:
|
||||||
|
claimName: adguard-config
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: adguard
|
name: adguard-service
|
||||||
namespace: adguard
|
namespace: adguard
|
||||||
spec:
|
spec:
|
||||||
selector: {app: adguard}
|
selector:
|
||||||
ports: [{port: 80, targetPort: 80}] # intern op 80 zetten is handig
|
app: adguard
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 3000
|
||||||
|
targetPort: 3000
|
||||||
|
name: http-initial
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
name: http # intern op 80 zetten is handig
|
||||||
---
|
---
|
||||||
# toevoegen in service.yaml — DNS op de node zelf
|
# toevoegen in service.yaml — DNS op de node zelf
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
Reference in New Issue
Block a user