Skip to content

Commit

Permalink
add wireguard app
Browse files Browse the repository at this point in the history
  • Loading branch information
abasitt committed Jan 6, 2025
1 parent 8a3327e commit aed5fc3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
1 change: 1 addition & 0 deletions kubernetes/router/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
- ./kea-dhcp/ks.yaml
- ./metallb/ks.yaml
- ./ufw/ks.yaml
- ./wireguard/ks.yaml
9 changes: 0 additions & 9 deletions kubernetes/router/apps/default/wireguard/app/helm-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ controllers:
image: &image
repository: abasitt/wg-alpine
tag: "06012025"
command:
- /bin/bash
- -cex
- |
bash /tmp/ufw-conf/ufw-rules.sh
while true; do
bash /tmp/ipsum-conf/ipsum-rules.sh
sleep 86400 # Sleep for 24 hours
done
resources:
requests:
cpu: "5m"
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/router/apps/default/wireguard/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: ufw
name: wg
spec:
interval: 15m
chart:
Expand All @@ -26,4 +26,4 @@ spec:

valuesFrom:
- kind: ConfigMap
name: ufw-helm-values
name: wg-helm-values
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resources:
- ./helmrelease.yaml

configMapGenerator:
- name: ufw-helm-values
- name: wg-helm-values
files:
- values.yaml=./helm-values.yaml
generatorOptions:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/router/apps/default/wireguard/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app ufw
name: &app wg
namespace: flux-system
spec:
targetNamespace: default
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/router/apps/default/ufw/app
path: ./kubernetes/router/apps/default/wireguard/app
prune: false # never should be deleted
sourceRef:
kind: GitRepository
Expand Down

0 comments on commit aed5fc3

Please sign in to comment.