From c7bc1c526f12691f834ff6de4e1abea7fb84c3ef Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sat, 3 Feb 2024 17:46:32 -0500 Subject: [PATCH] fix(cilium): k3s has an API server proxy at `127.0.0.1:6444` There is no need to use kube-vip LB --- roles/k3s_server_post/tasks/cilium.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/k3s_server_post/tasks/cilium.yml b/roles/k3s_server_post/tasks/cilium.yml index ec3e4c93e..aa027f408 100644 --- a/roles/k3s_server_post/tasks/cilium.yml +++ b/roles/k3s_server_post/tasks/cilium.yml @@ -170,8 +170,8 @@ {% if cilium_mode == "native" or (cilium_bgp and cilium_exportPodCIDR != 'false') %} --helm-set ipv4NativeRoutingCIDR={{ cluster_cidr }} {% endif %} - --helm-set k8sServiceHost={{ apiserver_endpoint }} - --helm-set k8sServicePort="6443" + --helm-set k8sServiceHost="127.0.0.1" + --helm-set k8sServicePort="6444" --helm-set routingMode={{ cilium_mode | default("native") }} --helm-set autoDirectNodeRoutes={{ "true" if cilium_mode == "native" else "false" }} --helm-set kubeProxyReplacement={{ kube_proxy_replacement | default("true") }}