Refreshing CML governance pods

If backing up and suspending CML workspaces is not possible, refresh CML governance pods after resizing a Data Lake.

  1. Generate kubeconfig for CML workspace for remote access (instructions here).
  2. Configure CML kubeconfig to access the workspace (see Kubernetes documentation).
  3. Run the following commands to restart goverance pods in CML:
    kubectl scale deployments governance --replicas 0 -n mlx
    #wait for 30 sec
    kubectl scale deployments governance --replicas 1 -n mlx