Skip to content
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

dockerized instance in a K8 cluster network isnt ready #41

Open
ncraig419 opened this issue Jan 11, 2024 · 1 comment
Open

dockerized instance in a K8 cluster network isnt ready #41

ncraig419 opened this issue Jan 11, 2024 · 1 comment

Comments

@ncraig419
Copy link

Have an issue with linuxgsm failing because the entrypoint.sh tries to download and install before the network is initialized.

can a delay be added to wait for a full response from the internet before it begins the processes in entrypoint-user.sh?

a simple while loop works but obviously not if I have to reload the docker image

#pause for network start
while ! ping -c 4 google.com > /dev/null;
do 
  echo -e "Waiting for internet connection."
  sleep 10
done
@compdude22
Copy link

When run in a Kubernetes cluster, does the LinuxGSM container remain running after failing to connect to the internet in entrypoint-user.sh? If not, I would have expected the cluster controller to restart the container, but retain the same pod, at which point networking should be present and the connections should succeed on the 2nd try.

It does seem problematic for the Kubernetes cluster if it is starting containers before networking is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants