{"repo":"eldada/kubernetes-scripts","free":true,"listed":false,"github":"https://github.com/eldada/kubernetes-scripts","clone":"git clone https://github.com/eldada/kubernetes-scripts.git","description":"A collection of scripts and commands for various Kubernetes tasks","language":"Shell","stars":420,"topics":["hacktoberfest","kubernetes","kubernetes-scripts"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Kubernetes Scripts A collection of scripts and commands for various tasks in Kubernetes. These were all written during my work with Kubernetes on various project. Enjoy and share. Contributions are more than welcome! Usage Each script has a usage function. See usage with Scripts countPodsAndContainerPerNodeCSV.sh: Count number of pods and containers per node. Print in CSV format. findEmptyNamespaces.sh: Loop over all namespaces in a cluster and find empty ones. getPodsLoad.sh: Get formatted results of pods in a namespace underlying node's load average (using cat /proc/loadavg). getPodsTopCSV.sh: Get a pod's cpu and memory usage (optionally per container) written as CSV formatted file. getResourcesCSV.sh: Get all pods resources requests, limits and actual usage per container in a CSV format with values normalized. getRestartingPods.sh: Get all pods (all or single namespace) that have restarts detected in one or more containers. Formatted in CSV. podReady.sh: Simple script to check if pod is really ready. Check status is 'Running' and that all containers are ready. Returns 0 if ready. Returns 1 if not ready. getNodesLoadCSV.sh: Traverse over the kube-proxy pods to get the nodes load average and number of CPUs in a CSV format. Will also mark high load node with big YES in the output. runCommandOnPods.sh: Run a command on a list of pods. canIdo.sh: Check all or some permissions current user has in a namespace on all or some resources using the kubectl auth can-i command. YAML mem","default_branch":null,"files":null,"tree":[],"storefront":"/r/eldada","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eldada/kubernetes-scripts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}