Articles

Affichage des articles du janvier, 2020

Remove .DS_Store from git repository

Remove existing .DS_Store files from the repository: find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch Add the .DS_Store line to the file   .gitignore , this file can be found at the top level of your repository, if not created it with the following command: echo .DS_Store >> .gitignore Then add the changes and commit them: git add .gitignore git commit -m '.DS_Store banished!' Then push: git push

How to increase Pods limit per worker node in Kubernetes

Image
Kubelet is close to pod limit Issue: The Alert Manager reported that our Kubelets running on the production nodes were running too many pods, close to the default limit of 110. Solution: First We need to take a look at Grafana dashboard to see if the nodes are able to receive more pods in terms of infrastructure resources (CPU/RAM, ....), then calculate the average of this resource utilization in order to determine the new value of pods limit on each node.   We suppose that the chosen value for the pods limit on nodes is 200, you can change it following these steps :     1.    Connect: First connect to the node (the worker with the issue):                                                                    $ ssh -i /path/to/your/ssh-key/id_rsa node-user@node-hostname node-user@node-hostname:~$ sudo -i  root@node-hostname:~#     2.    Edit: 
 Change the value KUBELET_MAX_PODS in the file /etc/default/kubelet from 110 to 200 ( use your favorite file edito