-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm-chart - client pod not starting up #18
Comments
UPDATE ok i have found the exact same issue on the doc: https://docs.k8s-at-home.com/guides/pod-gateway/#routed-pod-fails-to-init that solves the issue above, but i still get this error now
|
so the important missing part in the log above is the default route, looking aht the k8s@home doc:
and indeed this is not there:
|
when running this line manually: https://github.com/angelnu/pod-gateway/blob/main/bin/gateway_init.sh#L30 the script returns:
it seems like the vxlan exists, but not the route:
but as you can see from the last ip route, the default route is not applied ... how come ? |
I'm not sure what your settings are but I spent months trying to get pod-gateway working and finally got it working. Here's my values.yaml
|
thanks for the quick response, are you using Calico or Flannel ? |
I am using Flannel with Canal |
alright, in my case i am trying to setup the gateway first without any VPN, so using this:
as per documentation. but that seems not to work because the init container somehow does not manage to setup a default gateway within the container ... i wonder why. i am now trying with your setup, i.e. setting the image.tag value and the : NOT_ROUTED_TO_GATEWAY_CIDRS: "10.0.0.0/8" but i guest this will not make any difference. same goes for the VPN part, i guess that should not solve the core issue indeed it didnt make any difference. do you also get this strange error/warning in the log?
i cannot find a way to overwrite that file , but it seems that it is not supported: https://raspberrypi.stackexchange.com/questions/135208/semicolon-required-in-etc-dhcp-dhclient-conf i think this might be the issue because that file ends with this:
and perhaps this is why the interface/default route is not correctly created here i found the same error reported by someone else: k8s-at-home/charts#1633 (comment) |
motivated by: k8s-at-home/charts#1633 (comment) and angelnu#18 (comment)
Can you post your full config (values.yaml) file? |
these are litterally the only values i have changed: image:
tag: v1.8.1
routed_namespaces:
- vpn
settings:
NOT_ROUTED_TO_GATEWAY_CIDRS: 10.42.0.0/16 10.43.0.0/16 so the full values file is:
|
Just checking that your routed pods is not in the same namespace as pod-gateway? i.e pod-gateway is in different namespace to sonarr/radarr/any other routed pod |
done, i have followed this procedure: https://docs.k8s-at-home.com/guides/pod-gateway/#pod-gateway-helm-release so i have 2 different namespaces "vpn" for the routed pod and "pod-gateway" for the gateway container (which is healty, up and running) here the gateway namespace: here the pod namespace: |
What helm chart are you using? k8s-at-home never worked for me. I am using angelnu/pod-gateway (https://angelnu.github.io/helm-charts) and the above issue you had was resolved for me |
might that be that the chart only works on Ubuntu/Debian systems? or is also CentOS supported?
i am using the same chart that you have linked: |
I'm hitting the same issue here - I have been using RHEL-9 nodes, but just spun up a Ubuntu 22.04.2 to test if this is a node os issue. Unfortunatly, I am seeing the issue on this node as well |
@dberardo-com I resolved this error in my env. I turned off DOT and the Firewall for the gluetun pod.
I have the sidecar connecting to the gateway and the test pod connecting out through the gateway |
hi @DanielHouston i could give this a try. are the FIREWALL and the DOT variables the only ones that need to be set ? and also: are those vars specific of the pod-gateway chart or are them related to your vpn provider ? also: i have got the pod-gateway running on another cluster, but i cant manage to get the vpn client up. it seems that chart variables are doing nothing. Do you also face the same issue? i have reported this problem here: #12 (comment) |
I've actually got the whole setup working now using nordvpn and gluetun; helm values as follows:
I believe these don't differ too much from the defaults outside of the FIREWALL and DOT changes (I think I had to add the extra NET_RAW capabilities for CRI-O on RHEL9 as well) |
thanks a lot, i will check out these settings and see if the do work! |
No worries; note that I am also adding the secrets for auth post-helm install directly to the Deployment:
And that the username and password, in nordvpn's case, not the ones used to auth to your account in the UI, but are instead your Service Credentials which you can find on their site after logging in. |
alright, how do you do that? directly from the helm chart settings or did you have to create a custom Deployment before install the chart and tag it as install-hook: https://helm.sh/docs/topics/charts_hooks/#writing-a-hook or did you edit the deployment manually after install ? |
presumably either would work - but I actually created it manually as I'm self-managing my manifests (only using Helm to generate the manifests with --dry-run ala: |
@DanielHouston's config worked for me, and I can confirm that both DNS over TLS and the firewall had to be disabled for me. With DOT enabled, the gateway complained that the DNS had errors and it couldn't bind. With the firewall enabled, all pods with the sidecar complained that they could not connect to the gateway and that there were no DHCP leases available. Super strange and kind of a bummer it doesn't work with those enabled, but not a huge deal. Happy to finally have automatic VPN sidecars for any pods needed. Having all these pieces connected and working together is just really cool! |
when you talk about disabled firewall, are you talking about some sort of internal firewall service of the containers, or should the firewall on the actual physical server be disabled? and why would the pods need their own firwall to work ? thats a bit unclear to me. |
I'm referring to the ENV for the Gluetun service:
https://github.com/qdm12/gluetun/wiki/Firewall-options |
Ah interestingly this document shows a variable I hadn't seen:
https://github.com/qdm12/gluetun/wiki/Firewall-options @DanielHouston you might find interesting, may allow us to enable the firewall with correct configuration |
Going over my repositories today - if this is still relevant @dberardo-com , could you please test withe the latest chart? |
Please reopen if still present with the latest |
Details
What steps did you take and what happened:
i have installed the helm chart from: https://github.com/angelnu/helm-charts/tree/main/charts/apps/pod-gateway following the instructions on: https://docs.k8s-at-home.com/guides/pod-gateway/
the chart installs correctly, but then by deploying the test pod from: https://docs.k8s-at-home.com/guides/pod-gateway/#test-deployment i run into a timeout from the sidebar init-container (see below)
What did you expect to happen:
expected an output similar to this: #15 (comment)
Anything else you would like to add:
using k3s, single-node cluster w/ flatten
Additional Information:
this is the output of the gateway-init sidecar container:
The text was updated successfully, but these errors were encountered: