Update services/adguard/app.yaml
This commit is contained in:
@@ -31,20 +31,46 @@ spec:
|
||||
containers:
|
||||
- name: adguard
|
||||
image: adguard/adguardhome:v0.107.79 # pin de tag! (Renovate houdt ze bij)
|
||||
ports: [{containerPort: 80}]
|
||||
volumeMounts: [{name: config, mountPath: /opt/AdGuardHome}]
|
||||
env:
|
||||
- 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:
|
||||
- name: config
|
||||
persistentVolumeClaim: {claimName: adguard-config}
|
||||
- name: adguard-config
|
||||
persistentVolumeClaim:
|
||||
claimName: adguard-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: adguard
|
||||
name: adguard-service
|
||||
namespace: adguard
|
||||
spec:
|
||||
selector: {app: adguard}
|
||||
ports: [{port: 80, targetPort: 80}] # intern op 80 zetten is handig
|
||||
selector:
|
||||
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
|
||||
apiVersion: v1
|
||||
|
||||
Reference in New Issue
Block a user