Skip to content

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

Open

Description

@aossama

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

Activity

  1. mmcclaskey commented on Nov 14, 2024

    @mmcclaskey

    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?

  2. aossama commented on Nov 15, 2024

    @aossama
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions