fix(infra): mount kernel modules for wg-easy

This commit is contained in:
2026-09-07 16:51:43 -03:00
parent 3d3058a369
commit 7c43d0b7fb
+22 -1
View File
@@ -18,7 +18,10 @@ metadata:
namespace: infra namespace: infra
spec: spec:
strategy: strategy:
type: Recreate type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
@@ -81,11 +84,18 @@ spec:
volumeMounts: volumeMounts:
- name: wg-easy-volume - name: wg-easy-volume
mountPath: /etc/wireguard mountPath: /etc/wireguard
- name: kernel-modules
mountPath: /lib/modules
readOnly: true
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: wg-easy-volume - name: wg-easy-volume
persistentVolumeClaim: persistentVolumeClaim:
claimName: wg-easy-pvc claimName: wg-easy-pvc
- name: kernel-modules
hostPath:
path: /lib/modules
type: Directory
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@@ -124,3 +134,14 @@ spec:
name: wg-easy-svc name: wg-easy-svc
port: port:
number: 51821 number: 51821
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: wg-easy-pdb
namespace: infra
spec:
minAvailable: 1
selector:
matchLabels:
app: wg-easy