feat: update k3s-inside-dind
This commit is contained in:
@@ -2,8 +2,9 @@ FROM docker:29-dind
|
||||
|
||||
ARG TARGETARCH=amd64
|
||||
ARG K3S_VERSION=v1.28.2+k3s1
|
||||
ARG PRELOAD_IMAGES="true"
|
||||
|
||||
RUN apk add --no-cache bash iptables curl fuse-overlayfs
|
||||
RUN apk add --no-cache bash iptables curl fuse-overlayfs jq
|
||||
|
||||
RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
||||
export SUFFIX=""; \
|
||||
@@ -13,6 +14,10 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
||||
curl -L -o /usr/local/bin/k3s https://github.com/k3s-io/k3s/releases/download/${K3S_VERSION}/k3s${SUFFIX} && \
|
||||
chmod +x /usr/local/bin/k3s
|
||||
|
||||
RUN mkdir -p /var/lib/rancher/k3s/agent/images/ && \
|
||||
curl -sfL https://github.com/k3s-io/k3s/releases/download/${K3S_VERSION}/k3s-airgap-images-${TARGETARCH}.tar.zst \
|
||||
-o /var/lib/rancher/k3s/agent/images/k3s-airgap-images.tar.zst
|
||||
|
||||
EXPOSE 6443
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user