Skip to content

Commit

Permalink
feat: disable k3s service
Browse files Browse the repository at this point in the history
  • Loading branch information
erpz22 committed Aug 6, 2024
1 parent 3ab9f2d commit 104afab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/combustion/templates/k3s-single-node-installer.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ cp {{ .manifestsPath }}/* /var/lib/rancher/k3s/server/manifests/
umount /var

{{- if and .apiVIP .apiHost }}
echo "{{ .apiVIP }} {{ .apiHost }}" >> /etc/hosts
echo "{{ .apiVIP }} {{ .apiHost }}" >>/etc/hosts
{{- end }}

mkdir -p /etc/rancher/k3s/
cp {{ .configFilePath }}/{{ .configFile }} /etc/rancher/k3s/config.yaml

if [ -f {{ .registryMirrors }} ]; then
cp {{ .registryMirrors }} /etc/rancher/k3s/registries.yaml
cp {{ .registryMirrors }} /etc/rancher/k3s/registries.yaml
fi

export INSTALL_K3S_SKIP_DOWNLOAD=true
export INSTALL_K3S_SKIP_START=true
export INSTALL_K3S_SKIP_ENABLE=true
export INSTALL_K3S_BIN_DIR=/opt/bin

mkdir -p $INSTALL_K3S_BIN_DIR
Expand Down

0 comments on commit 104afab

Please sign in to comment.