fix: kubectl本地打包避docker下载超时; Service关联用spec.selector而非metadata.labels; 数据源兼容SvcSummary/IngSummary格式

This commit is contained in:
attacker committed 2026-06-23 02:37:33 +00:00
1 parent 451f65f9c8
commit 60934277ac
5 files changed
+36 -26

No files matched your search

+3 -4
View File
@@ -83,10 +83,9 @@ RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apk/re
RUN --mount=type=cache,target=/var/cache/apk \
apk add ca-certificates tzdata bash curl git docker-cli docker-cli-buildx
# kubectl 预装(~50MB,国内网络从 dl.k8s.io 下载约10s)// Logan.Li
ARG KUBECTL_VERSION=v1.32.0
RUN curl -sLo /usr/local/bin/kubectl https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
chmod +x /usr/local/bin/kubectl
# kubectl 预装(~50MB,本地打包进镜像,避免 Docker build 时网络下载)// Logan.Li
COPY backend/kubectl /usr/local/bin/kubectl
RUN chmod +x /usr/local/bin/kubectl
# npm 淘宝镜像加速(node 懒加载后生效)
RUN npm config set registry https://registry.npmmirror.com 2>/dev/null || true