What essential kubectl commands am I missing in my cheatsheet?

0
0
Asked By CuriousCoder92 On

I've created a cheatsheet to keep track of the kubectl commands I often forget, and I'm sharing it here for anyone who might find it useful. You can check it out at this link: [kubectl cheatsheet](https://github.com/maryamtb/rook/blob/main/community-notes/kubectl.md). I'm looking for suggestions on anything I should add or remove to improve it!

5 Answers

Answered By CheatSheetFanatic On

Check this out: [kubectl cheatsheet](https://devoriales.github.io/cheatsheets/kubectl-cheatsheet/#/). It's way more comprehensive than what you have! Mine is more tailored for daily use, but I appreciate the heads-up about this one.

Answered By GratefulUser55 On

Thanks a ton for sharing this! It's really helpful.

CuriousCoder92 -

Glad it helped! I’m gathering more cheatsheets in the repo, so if you have any to add or want to see more (I also have one for AWS CLI), feel free to contribute!

Answered By TechGuruX On

You should definitely add the command `kubectl cp`. It's super handy for copying files to and from containers! You can find more details here: [kubectl cp documentation](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cp/)

CuriousCoder92 -

Good call, just added it. Thanks!

Answered By DevOpsNinja77 On

If you're looking for alternatives, maybe try using k9s for a while. It's quite user-friendly, but you'll still need to drop back to kubectl for certain commands like `cp` and `apply` unless you set them up as plugins in the config YAML. I’d love to see a k9s cheatsheet from someone who's more experienced with it!

Answered By KubernetesWhiz On

I find `kubectl explain` to be one of my most-used commands. While I often rely on k9s or GitOps for a lot of tasks, that command is a game changer!

CuriousCoder92 -

I haven’t tried `kubectl explain` yet, but I just did and will add it to the list—thanks for the suggestion! I might lean towards k9s eventually, but we'll see how my muscle memory holds up.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.