Check numbers of templatecontent
custom resource objects in the etcd DB:
etcdctl get /registry/management.cattle.io/templatecontents --keys-only --prefix | sed '/^\s*$/d' | wc -l
A bug in Rancher prior v2.0.8 and v2.1.0 added a lot of html files in templatecontent
objects, which fills up etcd db and may cause K8s master nodes unavailable.
Delete all templatecontent
custom resource objects:
etcdctl del /registry/management.cattle.io/templatecontents/ --prefix