Skip to content

The Rancher v2.x systems summary script

Article Number: 000020192

Environment

A Rancher v2.x instance

Situation

Understanding your cluster/node distribution on an on-going basis assists Rancher in sending you any prescriptive advisories related to scale and performance.

System information can be collected from a Rancher v2.x server node using the Rancher v2.x systems summary script v2.

Resolution

The pod can be deployed from a host with a valid kubeconfig pointing to the local cluster (Kubernetes cluster hosting Rancher). You can deploy the pod and get the output by running the following commands:

# Deploy the pod in the cluster
kubectl apply -f https://raw.githubusercontent.com/rancherlabs/support-tools/master/collection/rancher/v2.x/systems-information-v2/deploy.yaml

# Wait for the pod to reach Succeeded status
while [[ $(kubectl get pod rancher-systems-summary-pod -n cattle-system -o 'jsonpath={..status.phase}') != "Succeeded" ]]; do
  echo "Waiting for rancher-systems-summary-pod to complete..."
  sleep 5
done

# Grab the logs from the pod 
kubectl logs pod/rancher-systems-summary-pod -n cattle-system

# Clean up the pod
kubectl delete pod/rancher-systems-summary-pod -n cattle-system