Skip to content

Commit

Permalink
Use node IP for inter pod routing
Browse files Browse the repository at this point in the history
Signed-off-by: Leonid Kondrashov <[email protected]>
  • Loading branch information
leokondrashov committed Sep 12, 2024
1 parent 0a44fc0 commit 751085c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cluster/setup_master_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 751085c

Please sign in to comment.