gke_runwhen-nonprod-sandbox_us-central1_sandbox-cluster-1-cluster Cluster Resource Health¶
Troubleshooting Commands¶
Identify High Utilization Nodes for Cluster gke_runwhen-nonprod-sandbox_us-central1_sandbox-cluster-1-cluster
¶
This script is a bash script used to gather and analyze resource allocation and usage data for nodes in a Kubernetes cluster. It retrieves information about node details, allocatable resources, and usage, and then processes and analyzes the data to identify nodes with high CPU and memory utilization, outputting the results to a JSON file called high_use_nodes.json.
CONTEXT="gke_runwhen-nonprod-sandbox_us-central1_sandbox-cluster-1-cluster" KUBERNETES_DISTRIBUTION_BINARY="kubectl" bash -c "$(curl -s https://raw.githubusercontent.com/runwhen-contrib/rw-cli-codecollection/main/codebundles/k8s-cluster-resource-health/get_high_use_nodes.sh)" _
Learn more
This multi-line content is auto-generated and used for educational purposes. Copying and pasting the multi-line text might not function as expected.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
Identify Pods Causing High Node Utilization in Cluster gke_runwhen-nonprod-sandbox_us-central1_sandbox-cluster-1-cluster
¶
This script is designed to automate the monitoring of resource requests in a Kubernetes cluster. It involves fetching details around CPU & memory allocations for nodes and pods, computes actual utilization, normalizes these metrics, and then compares them against configured settings in order to identify any excessive resource usage.
CONTEXT="gke_runwhen-nonprod-sandbox_us-central1_sandbox-cluster-1-cluster" KUBERNETES_DISTRIBUTION_BINARY="kubectl" bash -c "$(curl -s https://raw.githubusercontent.com/runwhen-contrib/rw-cli-codecollection/main/codebundles/k8s-cluster-resource-health/pods_impacting_high_use_nodes.sh)" _
Learn more
This multi-line content is auto-generated and used for educational purposes. Copying and pasting the multi-line text might not function as expected.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|