Skip to content

Cilium keeps looking at 127.0.0.1 during install #3084

@GurdipS5

Description

@GurdipS5

Hi,
I am trying to install Cilium on a k3s node, which is load balanced using haproxy and keepalived. I have installed k3s on the first node, but without a CNI, so kubectl get no returns the node but of course "Not Ready" due to the lack of a CNI.

However, when I run cilium install, ie:

cilium upgrade --set k8sServiceHost=10.0.10.10 --set k8sServicePort=6443 --set namespace=kube-system --set ipam.operator.clusterPoolIPv4PodCIDRList=10.42.0.0/16

I get:

Error: Unable to install Cilium: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused

However, in my kubeconfig file, I updated the ip to point to the vip above. If I run sudo KUBECONFIG=$KUBECONFIG cilium context, I see:

Context: default
Cluster: default
Auth: default
Host: https://10.0.10.10:6443
TLS server name:
CA path:

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