Skip to content

In-Kubernetes cluster default netfetch installation throws You're not connected to a Kubernetes cluster #198

@larssb

Description

@larssb

When installing netfetch-1.0.0 2.1.0 I get:

Using in-cluster Kubernetes configuration
You are not connected to a Kubernetes cluster. Please connect to a cluster and re-run the command: Get "https://10.241.8.1:443/api/v1/namespaces": dial tcp 10.241.8.1:443: i/o timeout

The IP 10.241.8.1 is correct. It is the ClusterIP of the kubernetes Service in the default namespace. I have other applications in the cluster that uses the kubernetes API address and works without issues.

Viewing GetClientset() in scanner.go this is where it seems to be determined that the in-cluster Kubeconfig should be used.

Looking at the netfetch Helm Chart values.yaml file I don't see any way to impact the kubeconfig configuration used.


What can I do to get to a place where this works? And what could be wrong.


Other info

  • Kubernetes: v1.31.1
  • Kubernetes distro: k3s
  • OS: Ubuntu 24.04

Looking forward to knowing more and thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions