kubectl cheatsheet

2022/05/21

The thing that I always forget. I had even made a note about this and lost it 🙄

Contexts

If there’s more than 1 config/cluster in your machine

I’m no expert to decide whether this is a good thing. I imagine that in a serious place/config one wouldn’t be kubectling all the time (possibly never). But should still be needed from time to time. Especially for learning purposes.

Getting what’s inside

Some troubleshooting

Secrets

ghcr.io is particularly annoying because they want you to create a personal access token (which is account-bound) to pull images. Afaik, it cannot be repo-bound. Not too good 😕

Stuff I couldn’t find 👇