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

Schedule kasm-manager as a StatefulSet instead of deployment #9

Open
aossama opened this issue Nov 14, 2024 · 2 comments
Open

Schedule kasm-manager as a StatefulSet instead of deployment #9

aossama opened this issue Nov 14, 2024 · 2 comments

Comments

@aossama
Copy link

aossama commented Nov 14, 2024

Greetings team,

First of all, thanks for the great work and effort that has gone in adopting Kasm Workspaces to run in Kubernetes.

As an improvement, I'd suggest to schedule kasm-manager to run as a statefulset instead of a deployment. This will help in having persistent managers list registered on the api server instead of the current behavior.

Scheduling the manager as a deployment causes the pods to obtain new names each time they restart resulting in managers registered in the api server but marked as missing. These managers will never be re-registered again on the api server as there is almost no chance to retain the old manager's name.

The screenshot attached shows several missing managers as a result of several restarts.

Multiple missing managers

@mmcclaskey
Copy link

The managers are supposed to self deregister on shutdown. Internally there is a sigtrap that will gracefully deregister on pod shutdown. What flavor of Kubernetes are you running on, and is there anything special about your environment or configuration that you think is relevant given that information?

@aossama
Copy link
Author

aossama commented Nov 15, 2024

I am using Talos Linux as the kubernetes distribution. What happened is that I was rebooting the nodes as a result of rolling two hop upgrades to the cluster, so I was evicting the pods and draining the nodes. All nodes rebooted twice. I didn't notice the additional kasm-managers until two days ago.

BTW, this also happened to the rdp-gateway and kasm-guac, I found several instances of them registered.

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