link-common
Helm chartv0.6.1App 2.8.6-alpine3.19Verified publisher
Simple vpn-p2p-link service
About this chart
link-common
Simple vpn-p2p-link service
The main idea of the project is to make it easy to connect Kubernetes services through a wireguard tunnel. This tunnel provides a secure way for external clients or other networks to access pre-defined services inside a Kubernetes cluster.
Homepage: https://github.com/sergelogvinov/helm-charts
Maintainers
| Name | Url | |
|---|---|---|
| sergelogvinov | https://github.com/sergelogvinov |
Source Code
Example:
service:
ports:
- name: postgres
port: 5432
backend: pg-backend.databases.svc.cluster.local:5432
- name: mongo
port: 27017
backend: mongo-backend-rs0-0.mongo-backend-rs0.databases.svc.cluster.local:27017
wireguard:
enabled: true
wireguardIP: 172.30.1.161/32
wireguardMTU: 1260
wireguardKey: "your-private-key"
peers:
link-1:
endpoint: 1.2.3.11:1191
allowedIps: 172.30.1.21/32
persistentKeepalive: 60
publicKey: "your-public-key"
link-2:
endpoint: 1.2.3.12:1191
allowedIps: 172.30.1.22/32
persistentKeepalive: 60
publicKey: "your-public-key"
Values
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 1 | |
| image.repository | string | "ghcr.io/sergelogvinov/haproxy" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| nameOverride | string | "" | |
| fullnameOverride | string | "" | |
| serviceAccount.create | bool | true | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.name | string | "" | |
| podAnnotations | object | {} | Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ |
| podSecurityContext | object | {"fsGroup":99,"fsGroupChangePolicy":"OnRootMismatch"} | Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod |
| securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"add":["NET_BIND_SERVICE"],"drop":["ALL"]},"runAsGroup":99,"runAsNonRoot":true,"runAsUser":99,"seccompProfile":{"type":"RuntimeDefault"}} | Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod |
| service | object | {"enableHeadlessService":false,"ipFamilies":["IPv4"],"ports":[],"type":"ClusterIP"} | Service parameters ref: https://kubernetes.io/docs/concepts/services-networking/service/ |
| certManager.createCerts | bool | false | |
| certManager.dnsName | string | nil | |
| certManager.clients | list | [] | |
| wireguard.enabled | bool | false | |
| wireguard.image.repository | string | "ghcr.io/sergelogvinov/wireguard" | |
| wireguard.image.pullPolicy | string | "IfNotPresent" | |
| wireguard.image.tag | string | "1.0.20250521" | |
| wireguard.wireguardIP | string | "172.30.1.1/32" | |
| wireguard.wireguardMTU | int | 1280 | |
| wireguard.wireguardPort | string | nil | WireGuard incoming port. uses as container hostPort. |
| wireguard.wireguardKey | string | "" | WireGuard private key. ref: https://www.wireguard.com/quickstart/ wg genkey |
| wireguard.peers | object | {} | |
| wireguard.metrics.enabled | bool | true | Enable link metrics |
| wireguard.metrics.image.repository | string | "mindflavor/prometheus-wireguard-exporter" | |
| wireguard.metrics.image.pullPolicy | string | "IfNotPresent" | |
| wireguard.metrics.image.tag | string | "3.6.6" | |
| tailscale.enabled | bool | false | |
| tailscale.image.repository | string | "ghcr.io/sergelogvinov/tailscale" | |
| tailscale.image.pullPolicy | string | "IfNotPresent" | |
| tailscale.image.tag | string | "1.104.7" | |
| tailscale.tailscaleIP | string | nil | |
| tailscale.tailscaleMTU | int | 1500 | |
| tailscale.envsSecrets | object | {} | |
| tailscale.envs | object | {} | |
| tailscale.tailscalePort | string | nil | Tailscale incoming port. uses as container hostPort. |
| tailscale.securityContext | object | {"capabilities":{"add":["NET_ADMIN","NET_RAW","MKNOD","SETUID","SETGID"],"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":false,"runAsUser":0,"seccompProfile":{"type":"RuntimeDefault"}} | Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod |
| tailscale.resources | object | {"limits":{"cpu":1,"memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/ |
| resources | object | {"limits":{"cpu":"100m","memory":"64Mi"},"requests":{"cpu":"50m","memory":"32Mi"}} | Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/ |
| networkPolicy.enabled | bool | false | Enable creation of NetworkPolicy resources ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ |
| networkPolicy.allowExternal | bool | false | Allow traffic from outside |
| networkPolicy.ingressNSMatchLabels | object | {} | Labels to match to allow traffic from other namespaces. |
| networkPolicy.ingressNSPodMatchLabels | object | {} | Pod labels to match to allow traffic from other namespaces |
| networkPolicy.metrics | object | {"ingressNSMatchLabels":{},"ingressNSPodMatchLabels":{"app.kubernetes.io/component":"monitoring","app.kubernetes.io/name":"vmagent"}} | NetworkPolicy for metrics. |
| networkPolicy.metrics.ingressNSMatchLabels | object | {} | Allowed from pods in namespaces that match the specified labels example: kubernetes.io/metadata.name: monitoring |
| networkPolicy.metrics.ingressNSPodMatchLabels | object | {"app.kubernetes.io/component":"monitoring","app.kubernetes.io/name":"vmagent"} | Allowed from pods that match the specified labels |
| nodeSelector | object | {} | Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/ |
| tolerations | list | [] | Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |
| affinity | object | {} | Affinity for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
Deploy link-common with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has link-common 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 chartlink-common is pinned at v0.6.1 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