Skip to content

Can't switch clusters via the desktop app #411

Closed

Description

@filmon-arefayne

Describe the bug

I can't switch context via the UI - specifically desktop app

The same kube config works by it self it only breaks when multiple clusters are added

To reproduce

just add multiple kubeconfigs and try to switch the cluster using the dropdown.

Expected behavior

I should be able switch between the cluster

Screenshots

Image

Diagnostics

Latest Version of the Desktop App (1v1.3.3)
Kubernetes v1.34.1

Activity

  1. nadaverell commented on Apr 2, 2026

    @nadaverell
    Contributor

    Thanks for reporting, checking. This is when using multiple kubeconfig files or single file with multiple clusters?

  2. nadaverell commented on Apr 2, 2026

    @nadaverell
    Contributor

    also, just to double check - you're sure it's not an actual auth issue that the cluster you tried to switch to, the credentials are expired?

  3. nadaverell commented on Apr 6, 2026

    @nadaverell
    Contributor

    Hey @filmon-arefayne can you please verify this works in the latest version? 🙏

  4. filmon-arefayne commented on Apr 7, 2026

    @filmon-arefayne
    Author

    Hey @nadaverell I've upgraded but the issue is still here. Yes I've double check the credentials and it work only when I have one kube config, the problem arises only with multiple kube config files

  5. nadaverell commented on Apr 12, 2026

    @nadaverell
    Contributor

    @filmon-arefayne can you please update to the latest, and when you have an error switching, grab a bug/diagnostics report using the bottom-right bug button?

    That should capture more (non-sensitive) info to help pinpoint the issue and any similar issues in the future.

  6. filmon-arefayne commented on Apr 21, 2026

    @filmon-arefayne
    Author

    Hey @nadaverell I've upgraded to latest this is the diagnostics

    Radar Diagnostics

    Version: 1.5.1 | Go: go1.26.2 | OS: darwin/arm64 | Uptime: 4m18s

    Connection

    • State: disconnected
    • Context: **********************
    • Error: cluster connection failed: cluster unreachable: the server has asked for the client to provide credentials
    • Error Type: auth

    Kubeconfig

    • Mode: multi-dir | Files: 2 | Contexts (post-merge): 2 | Enriched From Shell: No
    • Current Context Uses Exec: No

    Cluster

    • Platform: unknown | K8s: `` | Nodes: 0 | Namespaces: 0

    Event Pipeline

    • Received: 1,357 | Dropped: 19 | Uptime: 4m22.860086541s
    • Recent drops: ConfigMap/cluster-autoscaler-status (noisy_filter), ConfigMap/cluster-autoscaler-status (noisy_filter), ConfigMap/cluster-autoscaler-status (noisy_filter), ConfigMap/cluster-autoscaler-status (noisy_filter), ConfigMap/cluster-autoscaler-status (noisy_filter)

    Informers

    • Typed: 0 | Dynamic: 0

    Prometheus

    • Connected: No

    Runtime

    • Heap: 46.4 MB | Objects: 344.6K | Goroutines: 21 | CPUs: 11
    • SSE Clients: 1

    Config

    • Port: 0 | Dev: false | Timeline: memory | History: 10000 | MCP: true | Prometheus URL: auto

    Recent Errors (8)

    • [context-switch] stage=TestClusterConnection target="************" elapsed=2.711s: cluster unreachable: the server has asked for the client to provide credentials (5:29:26 PM)
    • [metrics] node metrics collection failed (count=1): Get "https://*************:6443/apis/metrics.k8s.io/v1beta1/nodes": context deadline exceeded (5:28:36 PM)
    • [prometheus] Prometheus at honeycomb/refinery not responding after port-forward (5:28:26 PM)
    • [prometheus] no Prometheus service found in cluster (5:26:53 PM)
    • [metrics] node metrics collection failed (count=1): client rate limiter Wait returned an error: context deadline exceeded (5:26:36 PM)
    • [metrics] pod metrics collection failed (count=1): Get "https://**********:6443/apis/metrics.k8s.io/v1beta1/pods": context deadline exceeded (5:26:36 PM)
    • [prometheus] no Prometheus service found in cluster (5:26:19 PM)
    • [env-enrich] KUBECONFIG not found in login shell (zsh -l -i); multi-file configs from .zshrc/.bashrc will not be visible (5:25:37 PM)
    Raw JSON
    {
      "timestamp": "2026-04-21T17:29:56+03:00",
      "radarVersion": "1.5.1",
      "goVersion": "go1.26.2",
      "goos": "darwin",
      "goarch": "arm64",
      "uptime": "4m18s",
      "uptimeSec": 258,
      "connection": {
        "state": "disconnected",
        "context": "*************",
        "error": "cluster connection failed: cluster unreachable: the server has asked for the client to provide credentials",
        "errorType": "auth"
      },
      "kubeconfig": {
        "mode": "multi-dir",
        "fileCount": 2,
        "contextCount": 2,
        "enrichedFromShell": false,
        "currentContextUsesExec": false
      },
      "cluster": {
        "platform": "unknown",
        "kubernetesVersion": "",
        "nodeCount": 0,
        "namespaceCount": 0,
        "inCluster": false
      },
      "eventPipeline": {
        "received": {
          "APIService": 35,
          "BlockAffinity": 46,
          "ClusterInformation": 1,
          "ConfigMap": 39,
          "CronJob": 2,
          "DaemonSet": 5,
          "Deployment": 36,
          "FelixConfiguration": 1,
          "IPAMBlock": 46,
          "IPAMConfig": 1,
          "IPPool": 2,
          "Ingress": 4,
          "Job": 7,
          "KubeControllersConfiguration": 1,
          "Namespace": 9,
          "Node": 43,
          "PersistentVolume": 76,
          "PersistentVolumeClaim": 44,
          "Pod": 279,
          "PodDisruptionBudget": 9,
          "ReplicaSet": 291,
          "Secret": 290,
          "Service": 13,
          "ServiceAccount": 58,
          "StatefulSet": 10,
          "StorageClass": 6,
          "Tier": 3
        },
        "dropped": {
          "noisy_filter": 19
        },
        "recorded": {
          "IPAMBlock": 46,
          "Node": 20
        },
        "recentDrops": [
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:25:52.537761+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:26:09.203987+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:26:45.207237+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:26:50.71872+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:26:50.863945+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:26:51.546183+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:27:02.670031+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:27:13.309987+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:27:25.648673+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:27:37.34543+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:27:48.435112+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:28:00.065439+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:28:11.659635+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:28:23.376715+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:28:37.055895+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:28:43.838612+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:28:55.044161+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:29:05.371634+03:00"
          },
          {
            "kind": "ConfigMap",
            "namespace": "kube-system",
            "name": "cluster-autoscaler-status",
            "reason": "noisy_filter",
            "operation": "update",
            "time": "2026-04-21T17:29:16.576387+03:00"
          }
        ],
        "uptime": "4m22.860086541s"
      },
      "informers": {
        "typedCount": 0,
        "dynamicCount": 0,
        "watchedCRDs": null
      },
      "prometheus": {
        "connected": false
      },
      "sse": {
        "connectedClients": 1
      },
      "runtime": {
        "heapMB": 46.38636016845703,
        "heapObjectsK": 344.605,
        "goroutines": 21,
        "numCPU": 11
      },
      "config": {
        "port": 0,
        "devMode": false,
        "timelineStorage": "memory",
        "historyLimit": 10000,
        "debugEvents": false,
        "mcpEnabled": true,
        "hasPrometheusURL": false
      },
      "recentErrors": [
        {
          "time": "2026-04-21T17:25:37.680638+03:00",
          "source": "env-enrich",
          "message": "KUBECONFIG not found in login shell (zsh -l -i); multi-file configs from .zshrc/.bashrc will not be visible",
          "level": "warning"
        },
        {
          "time": "2026-04-21T17:26:19.218982+03:00",
          "source": "prometheus",
          "message": "no Prometheus service found in cluster",
          "level": "warning"
        },
        {
          "time": "2026-04-21T17:26:36.941237+03:00",
          "source": "metrics",
          "message": "pod metrics collection failed (count=1): Get \"https://************:6443/apis/metrics.k8s.io/v1beta1/pods\": context deadline exceeded",
          "level": "error"
        },
        {
          "time": "2026-04-21T17:26:36.941429+03:00",
          "source": "metrics",
          "message": "node metrics collection failed (count=1): client rate limiter Wait returned an error: context deadline exceeded",
          "level": "error"
        },
        {
          "time": "2026-04-21T17:26:53.01961+03:00",
          "source": "prometheus",
          "message": "no Prometheus service found in cluster",
          "level": "warning"
        },
        {
          "time": "2026-04-21T17:28:26.573702+03:00",
          "source": "prometheus",
          "message": "Prometheus at honeycomb/refinery not responding after port-forward",
          "level": "error"
        },
        {
          "time": "2026-04-21T17:28:36.93801+03:00",
          "source": "metrics",
          "message": "node metrics collection failed (count=1): Get \"https://********:6443/apis/metrics.k8s.io/v1beta1/nodes\": context deadline exceeded",
          "level": "error"
        },
        {
          "time": "2026-04-21T17:29:26.371944+03:00",
          "source": "context-switch",
          "message": "stage=TestClusterConnection target=\"********************\" elapsed=2.711s: cluster unreachable: the server has asked for the client to provide credentials",
          "level": "error"
        }
      ],
      "totalErrorsRecorded": 8
    }
  7. nadaverell commented on Apr 22, 2026

    @nadaverell
    Contributor

    Thanks! should finally be resolved in v1.5.2. Please test and let me know :)

  8. filmon-arefayne commented on Apr 23, 2026

    @filmon-arefayne
    Author

    Yes! seems to work now thanks!

  9. nadaverell commented on Apr 23, 2026

    @nadaverell
    Contributor

    Great, sorry it took a while to resolve

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions