1.18.2. Resolving the problem: Klusterlet application manager on managed cluster
For Red Hat Advanced Cluster Management for Kubernetes 2.1.x and 2.2, you need to manually increase the memory limit of the pod to 8Gb
. See the following steps.
On your hub cluster, annotate the
klusterletaddonconfig
to pause replication. See the following command:oc annotate klusterletaddonconfig -n ${CLUSTER_NAME} ${CLUSTER_NAME} klusterletaddonconfig-pause=true -- overwrite=true
oc annotate klusterletaddonconfig -n ${CLUSTER_NAME} ${CLUSTER_NAME} klusterletaddonconfig-pause=true -- overwrite=true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On your hub cluster, scale down the
klusterlet-addon-operator
. See the following command:oc edit manifestwork ${CLUSTER_NAME}-klusterlet-addon-operator -n ${CLUSTER_NAME}
oc edit manifestwork ${CLUSTER_NAME}-klusterlet-addon-operator -n ${CLUSTER_NAME}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Find the
klusterlet-addon-operator
Deployment and addreplicas: 0
to the spec to scale down.Copy to Clipboard Copied! Toggle word wrap Toggle overflow On the managed cluster, the
open-cluster-management-agent-addon/klusterlet-addon-operator
pod will be terminated.Log in to the managed cluster to manually increase the memory limit in the
appmgr
pod.Run the following command:
% oc edit deployments -n open-cluster-management-agent-addon klusterlet-addon-appmgr
% oc edit deployments -n open-cluster-management-agent-addon klusterlet-addon-appmgr
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example, if the limit is 5G, increase the limit to 8G.
resources: limits: memory: 2Gi -> 8Gi requests: memory: 128Mi -> 256Mi
resources: limits: memory: 2Gi -> 8Gi requests: memory: 128Mi -> 256Mi
Copy to Clipboard Copied! Toggle word wrap Toggle overflow