https://github.com/bowei/debug-vm
https://github.com/bowei/debug-vm
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bowei/debug-vm
- Owner: bowei
- Created: 2020-07-22T01:13:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T17:27:32.000Z (almost 6 years ago)
- Last Synced: 2025-04-25T04:35:55.303Z (about 1 year ago)
- Language: Shell
- Size: 44.9 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
README
======
This is a debug pod that will record system level metrics to stdout and to
the systemd log for offline analysis.
You can run this either as a one-shot command to test it out:
kubectl apply -f oneShot.yaml
# Wait for pods/oneShot to complete.
kubectl logs oneShot
To run as a daemonset:
kubectl apply -f deploy.yaml
to deploy a daemonset to your cluster. The daemonset by default will only deploy
on nodes with the label `debug-vm: true`, so you must apply the label to have it
run:
kubectl label nodes/gke-xxxx debug-vm=true
Results can be seen on the VM serial console or via `kubectl logs`.