Skip to content

Commit

Permalink
fix image-cri-shim config
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu committed Sep 11, 2023
1 parent 41d7ecb commit 176bbab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k3s/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV registryData=/var/lib/registry \
defaultVIP=10.103.97.2 \
SEALOS_SYS_CRI_ENDPOINT=/run/k3s/containerd/containerd.sock \
SEALOS_SYS_IMAGE_ENDPOINT=/var/run/image-cri-shim.sock \
SEALOS_SYS_RUN_MODE=server \
SEALOS_SYS_RUN_MODE=master \
sandboxImage=rancher/mirrored-pause:3.6
COPY --from=docker.io/labring/kubernetes:v1.25.13 cri/registry cri/registry
COPY --from=ghcr.io/labring/sealos-patch:latest . .
Expand Down
2 changes: 1 addition & 1 deletion k3s/etc/k3s.service.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ RestartSec=5s
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/bin/k3s {{ if contains "master" .SEALOS_SYS_K3S_MODE }}server{{ else }}agent{{end}}
ExecStart=/usr/bin/k3s {{ if and (.SEALOS_SYS_RUN_MODE) (contains "master" .SEALOS_SYS_RUN_MODE) }}server{{ else }}agent{{end}}

0 comments on commit 176bbab

Please sign in to comment.