link-common

by serge.logvinov

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

NameEmailUrl
sergelogvinovhttps://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

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"ghcr.io/sergelogvinov/haproxy"
image.pullPolicystring"IfNotPresent"
image.tagstring""
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
serviceAccount.createbooltrue
serviceAccount.annotationsobject{}
serviceAccount.namestring""
podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podSecurityContextobject{"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
securityContextobject{"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
serviceobject{"enableHeadlessService":false,"ipFamilies":["IPv4"],"ports":[],"type":"ClusterIP"}Service parameters ref: https://kubernetes.io/docs/concepts/services-networking/service/
certManager.createCertsboolfalse
certManager.dnsNamestringnil
certManager.clientslist[]
wireguard.enabledboolfalse
wireguard.image.repositorystring"ghcr.io/sergelogvinov/wireguard"
wireguard.image.pullPolicystring"IfNotPresent"
wireguard.image.tagstring"1.0.20250521"
wireguard.wireguardIPstring"172.30.1.1/32"
wireguard.wireguardMTUint1280
wireguard.wireguardPortstringnilWireGuard incoming port. uses as container hostPort.
wireguard.wireguardKeystring""WireGuard private key. ref: https://www.wireguard.com/quickstart/ wg genkey
wireguard.peersobject{}
wireguard.metrics.enabledbooltrueEnable link metrics
wireguard.metrics.image.repositorystring"mindflavor/prometheus-wireguard-exporter"
wireguard.metrics.image.pullPolicystring"IfNotPresent"
wireguard.metrics.image.tagstring"3.6.6"
tailscale.enabledboolfalse
tailscale.image.repositorystring"ghcr.io/sergelogvinov/tailscale"
tailscale.image.pullPolicystring"IfNotPresent"
tailscale.image.tagstring"1.104.7"
tailscale.tailscaleIPstringnil
tailscale.tailscaleMTUint1500
tailscale.envsSecretsobject{}
tailscale.envsobject{}
tailscale.tailscalePortstringnilTailscale incoming port. uses as container hostPort.
tailscale.securityContextobject{"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.resourcesobject{"limits":{"cpu":1,"memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
resourcesobject{"limits":{"cpu":"100m","memory":"64Mi"},"requests":{"cpu":"50m","memory":"32Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
networkPolicy.enabledboolfalseEnable creation of NetworkPolicy resources ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
networkPolicy.allowExternalboolfalseAllow traffic from outside
networkPolicy.ingressNSMatchLabelsobject{}Labels to match to allow traffic from other namespaces.
networkPolicy.ingressNSPodMatchLabelsobject{}Pod labels to match to allow traffic from other namespaces
networkPolicy.metricsobject{"ingressNSMatchLabels":{},"ingressNSPodMatchLabels":{"app.kubernetes.io/component":"monitoring","app.kubernetes.io/name":"vmagent"}}NetworkPolicy for metrics.
networkPolicy.metrics.ingressNSMatchLabelsobject{}Allowed from pods in namespaces that match the specified labels example: kubernetes.io/metadata.name: monitoring
networkPolicy.metrics.ingressNSPodMatchLabelsobject{"app.kubernetes.io/component":"monitoring","app.kubernetes.io/name":"vmagent"}Allowed from pods that match the specified labels
nodeSelectorobject{}Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
tolerationslist[]Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
affinityobject{}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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlink-common is pinned at v0.6.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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