安装命令
helm install rancher rancher-stable/rancher --namespace cattle-system
–kubeconfig /etc/rancher/k3s/k3s.yaml
–set hostname=ip地址.nip.io \
–set service.type=NodePort
–set rancherImageTag=v2.9.3
–create-namespace
–set bootstrapPassword=“xxxxx”
–version 2.9.3
安装完成后发现hostname里面的ip地址填错了,
执行命令
helm upgrade rancher rancher-stable/rancher --namespace cattle-system
–kubeconfig /etc/rancher/k3s/k3s.yaml
–set hostname=正确的ip.nip.io \
–set service.type=NodePort
–set rancherImageTag=v2.9.3
–create-namespace
–set bootstrapPassword=“xxxxx”
–version 2.9.3
安装后rancher非常卡顿,rancher pod日志
W1210 07:14:35.534661 39 warnings.go:70] v1 ComponentStatus is deprecated in v1.19+
2024/12/10 07:14:35 [INFO] Watching metadata for monitoring.coreos.com/v1alpha1, Kind=AlertmanagerConfig
2024/12/10 07:14:35 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=Alertmanager
W1210 07:14:36.684054 39 warnings.go:70] v1 ComponentStatus is deprecated in v1.19+
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=ServiceMonitor
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=Prometheus
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=PodMonitor
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1alpha1, Kind=ScrapeConfig
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=Probe
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1alpha1, Kind=PrometheusAgent
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=ThanosRuler
2024/12/10 07:14:36 [INFO] Watching metadata for monitoring.coreos.com/v1, Kind=PrometheusRule
2024/12/10 07:14:41 [ERROR] Error during subscribe websocket: close sent
2024/12/10 07:14:41 [ERROR] Error during subscribe websocket: close sent
2024/12/10 07:21:43 [ERROR] Unknown error: Operation cannot be fulfilled on preferences.management.cattle.io “ns-by-cluster”: the object has been modified; please apply your changes to the latest version and try again
2024/12/10 07:21:43 [ERROR] Unknown error: Operation cannot be fulfilled on preferences.management.cattle.io “ns-by-cluster”: the object has been modified; please apply your changes to the latest version and try again
2024/12/10 07:24:55 [ERROR] Error during subscribe websocket: close sent
报错补充
2024/12/10 07:14:41 [ERROR] Error during subscribe websocket: close sent
2024/12/10 07:14:41 [ERROR] Error during subscribe websocket: close sent
2024/12/10 07:21:43 [ERROR] Unknown error: Operation cannot be fulfilled on preferences.management.cattle.io “ns-by-cluster”: the object has been modified; please apply your changes to the latest version and try again
2024/12/10 07:21:43 [ERROR] Unknown error: Operation cannot be fulfilled on preferences.management.cattle.io “ns-by-cluster”: the object has been modified; please apply your changes to the latest version and try again
2024/12/10 07:24:55 [ERROR] Error during subscribe websocket: close sent
2024/12/10 07:51:58 [ERROR] Error during subscribe websocket: close sent
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://avatars2.githubusercontent.com/u/19367275?s=200&v=4”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://raw.githubusercontent.com/rancher/prometheus-federator/main/assets/logos/prometheus-federator.svg”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://avatars2.githubusercontent.com/u/19367275?s=200&v=4”: dial tcp 185.199.109.133:443: i/o timeout (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://raw.githubusercontent.com/cncf/artwork/master/projects/longhorn/icon/color/longhorn-icon-color.png”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://avatars.githubusercontent.com/u/36015203?s=400&v=4”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/doc/images/Multus.png”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/12/10 08:05:31 [ERROR] Unknown error: Get “https://raw.githubusercontent.com/traefik/traefik/v2.3/docs/content/assets/img/traefik.logo.png”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)