自学内容网 自学内容网

【排坑】搭建 Karmada 环境

git clone 报错

问题:Failed to connect to github.com port 443:connection timed out

解决:

git config --global --unset http.proxy

【hack/local-up-karmada.sh】

1. karmada ca-certificates (no such package)

问题:fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/main: Permission denied

解决:路径 /karmada-io/karmada/cluster/images 下的 Dockerfile,在 RUN apk add 前加上这句。

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

完整 Dockerfile 内容:

FROM alpine:3.19.1

ARG BINARY

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories

RUN apk add --no-cache ca-certificates
#tzdata is used to parse the time zone information when using CronFederatedHPA
RUN apk add --no-cache tzdata

COPY ${BINARY} /bin/${BINARY}

2. Timeout waiting for file exist /root/.kube/karmada.config

解决:

# chmod -R 777 /root/.kube

原文地址:https://blog.csdn.net/HHCCCaptain/article/details/136306177

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!