A Quick Introduction to KubeAssert

What is KubeAssert

Install KubeAssert

krew install assert
curl -L https://raw.githubusercontent.com/morningspace/kubeassert/master/kubectl-assert.sh -o kubectl-assert
chmod +x kubectl-assert
mv ./kubectl-assert /usr/local/bin
kubectl assert
kubectl assert exist --help

Using KubeAssert

kubectl assert exist pods -l app=echo -n foo
kubectl assert pod-ready --all-namespaces
kubectl assert restarts pods -n foo -lt 10

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store