8.2 Configuring Flannel Memory

Applies only if you installed Identity Intelligence in a new cluster. Does not apply if you used the ./install-single-node-post.sh installation script, which automatically performed this configuration.

In some cases, after flannel pods have been running continuously for some time, the Kafka Manager pod (and others) might terminate abruptly. To prevent this issue, you should modify the flannel file.

You can either use the /opt/<Identity_Intelligence_Installer>/postinstall_adjust_flannel_mem.sh script automatically or you can configure the flannel memory manually:

  1. Back up the existing flannel yaml file by executing the following commands:

    cp $

    {K8S_HOME}/objectdefs/flannel.yaml ${K8S_HOME}

    /objectdefs/flannel.yaml.orig

  2. In the vi ${K8S_HOME}/objectdefs/flannel.yaml file, change both the request and limits memory to 250Mi under spec > spec > resources.

  3. Delete the existing flannel file by executing the following command:

    kubectl delete -f ${K8S_HOME}/objectdefs/flannel.yaml

  4. Create a new flannel yaml file by executing the following command:

    kubectl create -f ${K8S_HOME}/objectdefs/flannel.yaml

  5. Verify the change by executing the following command on each flannel pod:

    kubectl get pod $f_pod -n kube-system -o yaml | grep -A6 resources|grep memory

  6. Ensure that the memory value is set to 250Mi.