Skip to content

Commit

Permalink
refactor: update kube API server URL in ExecStart command
Browse files Browse the repository at this point in the history
- 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 <i@ysicing.me>
  • Loading branch information
ysicing committed Jul 25, 2024
1 parent 172d635 commit 08b0a8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 08b0a8f

Please sign in to comment.