angelnu / helm-charts

A collection of Helm charts
https://angelnu.github.io/helm-charts
Apache License 2.0
8 stars 9 forks source link

[pod-gateway]: The container will not get persistance mounts #141

Open samip5 opened 3 months ago

samip5 commented 3 months ago

I need to mount eg /dev to the gluetun container, but the template doesn't allow for that.

(Talos 1.8 alpha)

psych0d0g commented 1 month ago

adding resources definition to your values.yaml would fix that with a device-plugin as documented here: https://www.talos.dev/v1.8/kubernetes-guides/configuration/device-plugins/

after deploying the device plugin, put the following into your addon: vpn block in your values.yaml:

        resources:
          limits:
            squat.ai/tun: "1"

this at least fixes the pod-gateway deployment for me, the target pod that should be routed through VPN failes in its init container tho:

--- 10.244.3.29 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss

solved, the second issue at least for me was due to upstream gluetun changing the firewall parameter env var name: https://github.com/qdm12/gluetun/commit/e7381b3800d14d6f79df542eea0b71fe2dccfeef