From 08b0a8fffece302a22aa6f1df905ffc70d3d838c Mon Sep 17 00:00:00 2001 From: ysicing Date: Thu, 25 Jul 2024 11:55:02 +0800 Subject: [PATCH] refactor: update kube API server URL in ExecStart command - Modify the kube API server URL in the ExecStart command - Remove the duplicate kube API server URL in the ExecStart command Signed-off-by: ysicing --- common/const.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/const.go b/common/const.go index c8407417..4ddcf090 100644 --- a/common/const.go +++ b/common/const.go @@ -187,12 +187,10 @@ ExecStart=/usr/local/bin/k3s \ --flannel-backend {{ .CNI }} \ {{end -}} {{else -}} + --server https://{{ .KubeAPI }}:6443 \ agent \ {{end -}} --token {{ .KubeToken }} \ - {{if not .Master0 -}} - --server https://{{ .KubeAPI }}:6443 \ - {{end -}} --data-dir {{.DataDir}} \ --docker \ --pause-image {{ .Registry }}/rancher/mirrored-pause:3.6 \