From 5892538dd780ee79a7f8172b01f6b2d1c351e441 Mon Sep 17 00:00:00 2001 From: Leonid Kondrashov Date: Wed, 11 Sep 2024 20:28:32 +0800 Subject: [PATCH] Use node IP for inter pod routing Signed-off-by: Leonid Kondrashov --- scripts/cluster/setup_master_node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cluster/setup_master_node.go b/scripts/cluster/setup_master_node.go index 9c0ea5c27..17173f799 100644 --- a/scripts/cluster/setup_master_node.go +++ b/scripts/cluster/setup_master_node.go @@ -123,7 +123,7 @@ func InstallCalico() error { _, err = utils.ExecShellCmd(`yq -i '(select (.kind == "DaemonSet" and .metadata.name == "calico-node" and .spec.template.spec.containers[].name == "calico-node") | - .spec.template.spec.containers[].env) += {"name": "IP_AUTODETECTION_METHOD", "value": "skip-interface=br.*"}' %s`, + .spec.template.spec.containers[].env) += {"name": "IP_AUTODETECTION_METHOD", "value": "kubernetes-internal-ip"}' %s`, path.Join(configs.VHive.VHiveRepoPath, path.Join("configs/calico", "calico.yaml"))) if !utils.CheckErrorWithTagAndMsg(err, "Failed to patch Calico!\n") { return err