Skip to content

Commit 08b0a8f

Browse files
committed
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 <[email protected]>
1 parent 172d635 commit 08b0a8f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/const.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,10 @@ ExecStart=/usr/local/bin/k3s \
187187
--flannel-backend {{ .CNI }} \
188188
{{end -}}
189189
{{else -}}
190+
--server https://{{ .KubeAPI }}:6443 \
190191
agent \
191192
{{end -}}
192193
--token {{ .KubeToken }} \
193-
{{if not .Master0 -}}
194-
--server https://{{ .KubeAPI }}:6443 \
195-
{{end -}}
196194
--data-dir {{.DataDir}} \
197195
--docker \
198196
--pause-image {{ .Registry }}/rancher/mirrored-pause:3.6 \

0 commit comments

Comments
 (0)