wireguard-pia
by k8s-home-lab
Fast, modern, secure VPN tunnel with PIA connect scripts
About this chart
wireguard-pia
Fast, modern, secure VPN tunnel with PIA connect scripts
This chart is not maintained by the upstream project and any issues with the chart should be raised here
Source Code
- https://git.zx2c4.com/wireguard-tools
- https://github.com/pia-foss/manual-connections
- https://github.com/Aste88/container-images
Requirements
Kubernetes: >=1.16.0-0
Dependencies
| Repository | Name | Version |
|---|---|---|
| https://library-charts.k8s-at-home.com | common | 4.5.2 |
TL;DR
helm repo add Aste88 https://aste88.github.io/helm-charts/
helm repo update
helm install wireguard-pia Aste88/wireguard-pia
Installing the Chart
To install the chart with the release name wireguard-pia
helm install wireguard-pia Aste88/wireguard-pia
Uninstalling the Chart
To uninstall the wireguard-pia deployment
helm uninstall wireguard-pia
The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.
Configuration
Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.
Specify each parameter using the --set key=value[,key=value] argument to helm install.
helm install wireguard-pia \
--set env.TZ="America/New York" \
Aste88/wireguard-pia
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
helm install wireguard-pia Aste88/wireguard-pia -f values.yaml
Custom configuration
The container in this chart requires the wg0.conf to be in /etc/wireguard for it to run. Either add it under configSecret or under persistence.
Values
Important: When deploying an application Helm chart you can add more values from our common library chart here
| Key | Type | Default | Description |
|---|---|---|---|
| config.AUTOCONNECT | string | "false" | Automatically select best server based on latency |
| config.DIP_TOKEN | string | "no" | optional PIA dedicated IP token |
| config.DISABLE_IPV6 | string | "yes" | Disable IPv6 from the wg tunnel (active IPv6 connections might compromise security) |
| config.PIA_DNS | string | 0.05; | Maximum latency to PIA server for AUTOCONNECT MAX_LATENCY: "0.05" -- Set PIA dns in the resolvconf system |
| config.PIA_PASS | string | "" | PIA password |
| config.PIA_PF | string | "false" | assign forwarding port |
| config.PIA_USER | string | "" | PIA username (p#######) |
| config.PREFERRED_REGION | string | "" | Selet regio to connect (AUTOCONNECT overrides PREFERRED_REGION) |
| env.IPTABLES_BACKEND | string | "nft" | Override the backend used by iptables. Valid values are nft and legacy |
| env.KILLSWITCH | bool | false | Enable a killswitch that kills all trafic when the VPN is not connected |
| env.TZ | string | "UTC" | Set the container timezone |
| env.UMASK | string | nil | Sets UMASK. |
| image.pullPolicy | string | "IfNotPresent" | image pull policy |
| image.repository | string | "ghcr.io/aste88/wireguard-pia" | image repository |
| image.tag | string | nil | image tag |
| ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
| probes | object | See values.yaml | Configures the probes for the main Pod. |
| securityContext | object | see values.yaml | Security contexts required for container. |
| service | object | See values.yaml | Configures service settings for the chart. |
Changelog
Version 1.5.3
Added
N/A
Changed
- Disable default for probes
Fixed
N/A
Older versions
A historical overview of changes can be found on ArtifactHUB
Support
Autogenerated from chart metadata using helm-docs v0.1.1
Deploy wireguard-pia with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has wireguard-pia on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartwireguard-pia is pinned at v1.5.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply