rancher部署方式为:
docker run -d --restart=unless-stopped
-p 80:80 -p 443:443
–privileged
rancher/rancher:lates
rancher内部基础设施,启动不起来,是网络原因。
请问如何全部采用国内镜像源,把能改的地方全改
rancher容器一直重启
docker logs
2022/08/24 09:22:22 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=Role controller
2022/08/24 09:22:22 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding controller
2022/08/24 09:22:22 [INFO] Starting /v1, Kind=Namespace controller
2022/08/24 09:22:22 [INFO] Starting /v1, Kind=ResourceQuota controller
2022/08/24 09:22:22 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=ClusterRole controller
2022/08/24 09:22:22 [INFO] Starting /v1, Kind=ServiceAccount controller
2022/08/24 09:22:22 [INFO] Active TLS secret serving-cert (ver=8060) (count 5): map[listener.cattle.io/cn-127.0.0.1:127.0.0.1 listener.cattle.io/cn-172.17.0.2:172.17.0.2 listener.cattle.io/cn-172.30.0.101:172.30.0.101 listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=4A7F208A142363748357DABBC25510DC6120F350]
2022/08/24 09:22:22 [INFO] Listening on :444
2022/08/24 09:22:22 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-08-24 08:56:41 +0000 UTC notAfter=2023-08-24 09:22:22 +0000 UTC
2022/08/24 09:22:22 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-08-24 08:56:41 +0000 UTC notAfter=2023-08-24 09:22:22 +0000 UTC
2022/08/24 09:22:22 [INFO] Updating TLS secret for tls-rancher-internal (count: 1): map[listener.cattle.io/cn-10.43.131.97:10.43.131.97 listener.cattle.io/fingerprint:SHA1=84245566403AD9EC9DA893255B6D0FC3E07E4260]
2022/08/24 09:22:22 [INFO] Starting /v1, Kind=Secret controller
2022/08/24 09:22:23 [INFO] Active TLS secret tls-rancher-internal (ver=8066) (count 1): map[listener.cattle.io/cn-10.43.131.97:10.43.131.97 listener.cattle.io/fingerprint:SHA1=84245566403AD9EC9DA893255B6D0FC3E07E4260]
2022/08/24 09:22:26 [INFO] Updating TLS secret for tls-rancher-internal (count: 1): map[listener.cattle.io/cn-10.43.131.97:10.43.131.97 listener.cattle.io/fingerprint:SHA1=7591D956BAF119E5F93A9EDEE2EEC257F80A12D9]
2022/08/24 09:22:32 [INFO] Active TLS secret tls-rancher-internal (ver=8076) (count 1): map[listener.cattle.io/cn-10.43.131.97:10.43.131.97 listener.cattle.io/fingerprint:SHA1=7591D956BAF119E5F93A9EDEE2EEC257F80A12D9]
2022/08/24 09:22:35 [ERROR] failed to call leader func: failed to add management data: Post “https://127.0.0.1:6443/apis/management.cattle.io/v3/authconfigs”: EOF
2022/08/24 09:22:35 [ERROR] failed to call leader func: failed to add authconfig data: Post “https://127.0.0.1:6443/apis/management.cattle.io/v3/authconfigs”: EOF
2022/08/24 09:22:35 [ERROR] failed to call leader func: Get “https://127.0.0.1:6443/apis/rbac.authorization.k8s.io/v1/clusterroles/fleetworkspace-member”: dial tcp 127.0.0.1:6443: connect: connection refused
2022/08/24 09:22:35 [FATAL] k3s exited with: exit status 255
k3s.log
time=“2022-08-24T09:23:48.052057244Z” level=info msg=“Starting helm.cattle.io/v1, Kind=HelmChartConfig controller”
time=“2022-08-24T09:23:48.052084730Z” level=info msg=“Starting helm.cattle.io/v1, Kind=HelmChart controller”
time=“2022-08-24T09:23:48.052097003Z” level=info msg=“Starting batch/v1, Kind=Job controller”
time=“2022-08-24T09:23:48.052106725Z” level=info msg=“Starting /v1, Kind=Service controller”
time=“2022-08-24T09:23:48.052139255Z” level=info msg=“Starting /v1, Kind=Pod controller”
time=“2022-08-24T09:23:48.052184977Z” level=info msg=“Starting /v1, Kind=Endpoints controller”
time=“2022-08-24T09:23:48.058641203Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“auth-reader”, UID:”", APIVersion:“k3s.cattle.io/v1”, ResourceVersion:"", FieldPath:""}): type: ‘Normal’ reason: ‘DeletingManifest’ Deleting manifest at “/var/lib/rancher/k3s/server/manifests/metrics-server/auth-reader.yaml”"
time=“2022-08-24T09:23:48.072986950Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“metrics-apiservice”, UID:”", APIVersion:“k3s.cattle.io/v1”, ResourceVersion:"", FieldPath:""}): type: ‘Normal’ reason: ‘DeletingManifest’ Deleting manifest at “/var/lib/rancher/k3s/server/manifests/metrics-server/metrics-apiservice.yaml”"
time=“2022-08-24T09:23:48.077659629Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“metrics-server-deployment”, UID:”", APIVersion:“k3s.cattle.io/v1”, ResourceVersion:"", FieldPath:""}): type: ‘Normal’ reason: ‘DeletingManifest’ Deleting manifest at “/var/lib/rancher/k3s/server/manifests/metrics-server/metrics-server-deployment.yaml”"
time=“2022-08-24T09:23:48.093129258Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“metrics-server-service”, UID:”", APIVersion:“k3s.cattle.io/v1”, ResourceVersion:"", FieldPath:""}): type: ‘Normal’ reason: ‘DeletingManifest’ Deleting manifest at “/var/lib/rancher/k3s/server/manifests/metrics-server/metrics-server-service.yaml”"
time=“2022-08-24T09:23:48.095051013Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“resource-reader”, UID:”", APIVersion:“k3s.cattle.io/v1”, ResourceVersion:"", FieldPath:""}): type: ‘Normal’ reason: ‘DeletingManifest’ Deleting manifest at “/var/lib/rancher/k3s/server/manifests/metrics-server/resource-reader.yaml”"
time=“2022-08-24T09:23:48.099510277Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“rolebindings”, UID:“7fa4853f-c6cf-4e41-b98a-0fa87d495e88”, APIVersion:“k3s.cattle.io/v1”, ResourceVersion:“338”, FieldPath:”"}): type: ‘Normal’ reason: ‘ApplyingManifest’ Applying manifest at “/var/lib/rancher/k3s/server/manifests/rolebindings.yaml”"
time=“2022-08-24T09:23:48.103622848Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“rolebindings”, UID:“7fa4853f-c6cf-4e41-b98a-0fa87d495e88”, APIVersion:“k3s.cattle.io/v1”, ResourceVersion:“338”, FieldPath:”"}): type: ‘Normal’ reason: ‘AppliedManifest’ Applied manifest at “/var/lib/rancher/k3s/server/manifests/rolebindings.yaml”"
time=“2022-08-24T09:23:48.242889491Z” level=info msg=“Event(v1.ObjectReference{Kind:“Addon”, Namespace:“kube-system”, Name:“traefik”, UID:”", APIVersion:“k3s.cattle.io/v1”, ResourceVersion:"", FieldPath:""}): type: ‘Normal’ reason: ‘DeletingManifest’ Deleting manifest at “/var/lib/rancher/k3s/server/manifests/traefik.yaml”"
time=“2022-08-24T09:23:48.694968337Z” level=info msg=“Starting /v1, Kind=Secret controller”
time=“2022-08-24T09:23:48.695355030Z” level=info msg=“certificate CN=k3s,O=k3s signed by CN=k3s-server-ca@1661331371: notBefore=2022-08-24 08:56:11 +0000 UTC notAfter=2023-08-24 09:23:48 +0000 UTC”
time=“2022-08-24T09:23:48.848269505Z” level=info msg=“Updating TLS secret for k3s-serving (count: 10): map[listener.cattle.io/cn-10.43.0.1:10.43.0.1 listener.cattle.io/cn-127.0.0.1:127.0.0.1 listener.cattle.io/cn-172.17.0.2:172.17.0.2 listener.cattle.io/cn-172.30.0.101:172.30.0.101 listener.cattle.io/cn-kubernetes:kubernetes listener.cattle.io/cn-kubernetes.default:kubernetes.default listener.cattle.io/cn-kubernetes.default.svc:kubernetes.default.svc listener.cattle.io/cn-kubernetes.default.svc.cluster.local:kubernetes.default.svc.cluster.local listener.cattle.io/cn-local-node:local-node listener.cattle.io/cn-localhost:localhost listener.cattle.io/fingerprint:SHA1=2CEBBD2573C029DB9FC95A0373F036A7042B700E]”
time=“2022-08-24T09:23:49.243073644Z” level=info msg=“Active TLS secret k3s-serving (ver=8142) (count 10): map[listener.cattle.io/cn-10.43.0.1:10.43.0.1 listener.cattle.io/cn-127.0.0.1:127.0.0.1 listener.cattle.io/cn-172.17.0.2:172.17.0.2 listener.cattle.io/cn-172.30.0.101:172.30.0.101 listener.cattle.io/cn-kubernetes:kubernetes listener.cattle.io/cn-kubernetes.default:kubernetes.default listener.cattle.io/cn-kubernetes.default.svc:kubernetes.default.svc listener.cattle.io/cn-kubernetes.default.svc.cluster.local:kubernetes.default.svc.cluster.local listener.cattle.io/cn-local-node:local-node listener.cattle.io/cn-localhost:localhost listener.cattle.io/fingerprint:SHA1=2CEBBD2573C029DB9FC95A0373F036A7042B700E]”
你在说啥
我使用阿里云镜像仓库的Rancher镜像启动Rancher 但是容器一直重启