-
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
init container not running completely. #9
Comments
Please try the helm chart at https://github.com/angelnu/helm-charts as the charts at k8s-at-home are not longer maintained. This problem might be solved by #2 So you need https://github.com/angelnu/pod-gateway/releases/tag/v1.8.1 |
Hi, I deployed the helm chart from https://github.com/angelnu/helm-charts, as well I took the https://github.com/angelnu/pod-gateway/releases/tag/v1.8.1 and deployed the pods. I created a pod in the vpn namespace the admission gateway controller successfully ran the client_init.sh scripts and others as well. I have enabled the vpn and also supplied the certs/conf within the pod-gateway. But I am still not able to ping 192.168.10.221 which is a destination that I need to reach via the openvpn. Here is the screenshot of the config that I have supplied: what am I doing wrong here ? |
@faisalbasha19 - this will need debugging step by step:
As the 192.168.0.0/16 range is routed through eth0 and not the vxlan then the problem is not the tunnel or the gateway but likely the network policy. Did you define a networkpolicy similar to https://github.com/angelnu/k8s-gitops/blob/main/core/vpn/networkPolicy.yaml ? In my case I do not allow any traffic to leave the namespace except that going to other cluster namespaces. |
i am facing similar issue, the default route through the vxlan0 does not start up in the init container: #18 @faisalbasha19 have you checked this out ? might help: https://docs.k8s-at-home.com/guides/pod-gateway/#routed-pod-fails-to-init |
Details
What steps did you take and what happened:
I cloned the repo https://github.com/k8s-at-home/charts/tree/master/charts/stable/pod-gateway which is basically
the helm chart to deploy pod-gateway. This chart refers to the image created via this git source code. The pods seem
to be in a running state, so I don''t have a problem with the chart. But when I create a test pod under the namespace vpn the
gateway admission controller receives a request that invokes the webhook server present within this pod and injects an init container
which executes the client_init.sh script but this container gets shutdown or terminated halfway as it doesn't get the K8S_GW_IP.
Please see screenshots below:
The logs of the testpod within the vpn namespace:
What did you expect to happen:
Expected the testpod to run and route traffic via the pod gateway.
Anything else you would like to add:
Additional Information:
The text was updated successfully, but these errors were encountered: