rancher: private registry for workload cluster - let RancherUI freeze
What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):
- run a rancher deployment
- add workload cluster
- go to Global > Cluster > Workload Cluster > Edit settings
- private registry settings > Cluster is updateing
Result: RancherUi is freeing (greyed)
On the workload cluster the dockersecret is visible a the namespace cattle-system, only:
kubectl --namespace cattle-system get secrets cattle-private-registry
NAME TYPE DATA AGE
cattle-private-registry kubernetes.io/dockerconfigjson 1 40h
Cluster information
- rancher v2.3.4
gz#11072
gz#8083
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 16 (9 by maintainers)
I have also reproduced this in v2.3.4 and v2.3.5, Rancher appears to be creating a badly formatted kubernetes.io/dockerconfigjson secret which the UI then fails to parse.
After dockerhub download limits being in place adding private registry to an existing cluster is very highly needed feature. We run into this problem as well.
Rancher v2.4.8, Kubernetes 1.18.12, Docker 19.03.13, Debian 10, 14 nodes, 3 masters.
Reproduced in v.2.4.5: Cluster gets stuck in updating state after updating the private registry credentials or switching to a new registry.
Result:
updating
state./var/lib/kubelet/config.json
) on these nodes shows that the new registry configuration has not been applied (it still contains credentials for the old registry).As requested in the ticket, just updating below with my reproduction steps for the frozen UI in v2.3.4, although I see Max has subsequently reproduced:
By comparison, create the secret manually, observe the System project registry credentials view does not freeze and contents of the secret is as follows:
Thanks @crux!