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
klusterletaddonconfigto pause replication. See the following command:oc annotate klusterletaddonconfig -n ${CLUSTER_NAME} ${CLUSTER_NAME} klusterletaddonconfig-pause=true -- overwrite=trueOn your hub cluster, scale down the
klusterlet-addon-operator. See the following command:oc edit manifestwork ${CLUSTER_NAME}-klusterlet-addon-operator -n ${CLUSTER_NAME}Find the
klusterlet-addon-operatorDeployment and addreplicas: 0to the spec to scale down.- apiVersion: apps/v1 kind: Deployment metadata: labels: app: cluster1 name: klusterlet-addon-operator namespace: open-cluster-management-agent-addon spec: replicas: 0On the managed cluster, the
open-cluster-management-agent-addon/klusterlet-addon-operatorpod will be terminated.Log in to the managed cluster to manually increase the memory limit in the
appmgrpod.Run the following command:
% oc edit deployments -n open-cluster-management-agent-addon klusterlet-addon-appmgrFor example, if the limit is 5G, increase the limit to 8G.
resources: limits: memory: 2Gi -> 8Gi requests: memory: 128Mi -> 256Mi