Closed Rajakavitha1 closed 2 years ago
Did anybody get back to you about this one? I'm having same issue. This is a logged in the ccm-linode pod logs every five minutes
I0321 20:39:31.437982 1 controller.go:368] Ensuring load balancer for service kube-system/traefik I0321 20:39:31.438254 1 event.go:291] "Event occurred" object="kube-system/traefik" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer" I0321 20:39:31.438275 1 event.go:291] "Event occurred" object="kube-system/traefik" kind="Service" apiVersion="v1" type="Warning" reason="UnAvailableLoadBalancer" message="There are no available nodes for LoadBalancer" E0321 20:39:31.583257 1 controller.go:275] error processing service kube-system/traefik (will retry): failed to ensure load balancer: [400] [configs[0].nodes] nodes is required; [configs[1].nodes] nodes is required I0321 20:39:31.583360 1 event.go:291] "Event occurred" object="kube-system/traefik" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: [400] [configs[0].nodes] nodes is required; [configs[1].nodes] nodes is required"
My only difference. I didn't set this: export KUBELET_EXTRA_ARGS=--provider-id=linode://$20216573
Turns out it does need KUBELET_EXTRA_ARGS=--provider-id=linode://$20216573, without the $ sign.. So; KUBELET_EXTRA_ARGS=--provider-id=linode://(linode-node-id,-of-node-you-are-joining) The complaint about missing nodes, was for no agents existing. Once I added an agent node, the ccm, did create a load balancer automatically. So collectively, this is a none issue I think and can be closed.
Turns out it does need KUBELET_EXTRA_ARGS=--provider-id=linode://$20216573, without the $ sign.. So; KUBELET_EXTRA_ARGS=--provider-id=linode://(linode-node-id,-of-node-you-are-joining) The complaint about missing nodes, was for no agents existing. Once I added an agent node, the ccm, did create a load balancer automatically. So collectively, this is a none issue I think and can be closed.
Thank you so much @ikatergaris!!!!
Marking this issue as closed as suggested by @ikatergaris
General:
Bug Reporting
Linode CCM does not get integrated with the K3s cluster.
Steps to reproduce the problem
Provision a K3s master on Ubuntu 18.04 Linode with the following:
NAME READY STATUS RESTARTS AGE local-path-provisioner-58fb86bdfd-855vg 1/1 Running 0 15h metrics-server-6d684c7b5-wv5s8 1/1 Running 0 15h helm-install-traefik-hnbqq 0/1 Completed 0 15h coredns-6c6bb68b64-qhpn4 1/1 Running 0 15h traefik-7b8b884c8-9wnz6 1/1 Running 0 15h
secret/ccm-linode created serviceaccount/ccm-linode created clusterrolebinding.rbac.authorization.k8s.io/system:ccm-linode created daemonset.apps/ccm-linode created
export K3S_KUBECONFIG_MODE="644" export K3S_URL="https://45.79.120.176:6443" export K3S_TOKEN="K1007cc0062e2e7d06dabf7365d59a016043a8aea9677ebee9e4b433b19efde31ef::server:89baaaf06ce09843905f2dcb81ca8852" export KUBELET_EXTRA_ARGS=--cloud-provideer=external export KUBELET_EXTRA_ARGS=--provider-id=linode://$20216573
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE drupal LoadBalancer 10.0.0.89 8081:31809/TCP 33m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE drupal LoadBalancer 10.0.0.89 192.0.2.0 8081:31809/TCP 33m