Remote host¶
Date and time¶
Scheduled tasks¶
journalctl¶
sysstat¶
Install sysstat
sudo apt install sysstat
sed -i 's/ENABLED="false"/ENABLED="true"/' /etc/default/sysstat
systemctl restart sysstat sysstat-collect.timer sysstat-summary.timer
Then inspect:
Unexpected pod restarts¶
Get restart count per pod:
kubectl -n $namespace get pods \
-o=jsonpath='{range .items[*]}{range .status.containerStatuses[*]}{.name}{" "}{.restartCount}{"\n"}{end}{end}' \
| grep -v charm
kubectl -n cos-lite-load-test get pods -o=jsonpath='{"{"}{range .items[*]}{"\""}{.metadata.name}{"\":{"}{range .status.containerStatuses[*]}{"\""}{.name}{"\":"}{.restartCount}{","}{end}{"},"}{end}{"}"}' | sed 's/,},/},/g' | sed 's/},}/}}/g' | jq
Check for OOM kills:
Check for node pressure eviction
Pod hits resource limit¶
This is useful to see if resource limits prevent scheduling a pod:
Certs¶
Verify remote certificate chain¶
View¶
echo | openssl s_client -showcerts -servername charmhub.io -connect charmhub.io:443 | openssl x509 -text -noout