Skip to content

Commit

Permalink
Merge pull request #465 from lentzi90/wireguard
Browse files Browse the repository at this point in the history
Wireguard: Add apps
  • Loading branch information
lentzi90 authored Dec 28, 2024
2 parents 065ea5d + 20a9ed8 commit 11154e9
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 10 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ host example.com "${pi_hole_ip}"
POD_NAME=$(kubectl -n wireguard get pod -l app.kubernetes.io/name=wireguard -o jsonpath="{.items[0].metadata.name}")
kubectl -n wireguard cp "${POD_NAME}":/config/peer1/peer1.conf /tmp/peer1.conf
sudo nmcli con import type wireguard file /tmp/peer1.conf
# Remove DNS configuration from the connection
nmcli con modify peer1 -ipv4.dns "10.13.13.1"
nmcli con modify peer1 -ipv4.dns-search "~"

nmcli c up peer1
# Check the connection by curling coredns
curl 10.96.0.10:9153
Expand Down
11 changes: 6 additions & 5 deletions apps/kind/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ namespace: argocd
resources:
- apps-app.yaml
- argocd-app.yaml
- external-secrets-app.yaml
- nextcloud-app.yaml
- ingress-nginx-app.yaml
- cert-manager-app.yaml
- cloudnative-pg-app.yaml
- external-secrets-app.yaml
- hetzner-acme-app.yaml
- ingress-nginx-app.yaml
- jellyfin-app.yaml
- metallb-app.yaml
- minio-app.yaml
- cloudnative-pg-app.yaml
- nextcloud-app.yaml
- pi-hole-app.yaml
- jellyfin-app.yaml
- wireguard-app.yaml
19 changes: 19 additions & 0 deletions apps/kind/wireguard-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wireguard
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
destination:
namespace: wireguard
server: https://kubernetes.default.svc
project: default
source:
path: wireguard/overlays/kind
repoURL: https://github.com/lentzi90/personal-cloud.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
4 changes: 1 addition & 3 deletions apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ resources:
- argocd-app.yaml
- external-secrets-app.yaml
- nextcloud-app.yaml
# - registry-app.yaml
- ingress-nginx-app.yaml
- cert-manager-app.yaml
- hetzner-acme-app.yaml
Expand All @@ -21,5 +20,4 @@ resources:
- prometheus-operator-app.yaml
- pi-hole-app.yaml
- jellyfin-app.yaml
# - prometheus-app.yaml
# - grafana-app.yaml
- wireguard-app.yaml
19 changes: 19 additions & 0 deletions apps/wireguard-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wireguard
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
destination:
namespace: wireguard
server: https://kubernetes.default.svc
project: default
source:
path: wireguard/overlays/jern.fi
repoURL: https://github.com/lentzi90/personal-cloud.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
4 changes: 2 additions & 2 deletions wireguard/overlays/kind/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
- name: PEERS
value: "1"
- name: PEERDNS
value: "8.8.8.8"
value: "10.96.0.10"
- name: ALLOWEDIPS
value: "10.244.0.0/16,10.96.0.0/12"
value: "10.244.0.0/16,10.96.0.0/12,10.13.13.0/24"
- name: SERVERURL
value: 10.89.0.250

0 comments on commit 11154e9

Please sign in to comment.