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
@@ -89,10 +89,9 @@ RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apk/re
# kubectl=预装(~50MB),maven/nodejs/helm → 工具配置Tab懒加载
RUN apk --no-cache add ca-certificates tzdata bash curl git docker-cli docker-cli-buildx
# kubectl 预装 // 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 预装(本地打包进镜像,避免 Docker build 时网络下载)// Logan.Li
COPY backend/kubectl /usr/local/bin/kubectl
RUN chmod +x /usr/local/bin/kubectl
# Maven 阿里云镜像加速(maven 懒加载后生效)
RUN mkdir -p /root/.m2 && \