-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
[Kubernetes] backup before a container is terminated #246
Conversation
Considering this would need RBAC (and kubectl in the container) it would be probably be better to just execute a script in the container |
I just realized that I am running inside a pod, so there is no need to execute kubectl. Thank you for your advice. |
Perhaps a livenessProbe for the RCON port can be configured, but I'm not sure about the correlation between the server and RCON. livenessProbe:
tcpSocket:
port: 25575
initialDelaySeconds: 30
periodSeconds: 60 |
Good point 👍🏼 I think we just address the probe(s) in another PR as that may be tricky. I'll try to think about a solution. This looks good! Should we also add a |
After a liveness probe failure, the pod will be restarted. I think it may not be necessary. I might conduct a test using Minikube in the next few days. |
@win5923 Just give me a headsup when it is ready to merge :) |
Done! |
This doesn't work. exec only takes a command not a command and args |
Oh, you're right. I forgot to save before applying. No wonder I was able to apply successfully. |
[Kubernetes] backup before a container is terminated
Incorporate backup functionality before the termination of a container due to API requests or management events such as liveness/startup probe failure, preemption, resource contention, and others.
Choices
Test instructions
Checklist before requesting a review