Kubernetes cheat sheet — to get up and running.

Accessing a pod


This will allow you to interact with the pod. For example, if I wanted to list the directory structure.

View cron tasks

To see all the active cronjobs run:


To watch all the jobs in real time

To get the state of a cron job run:


Get all pods

Get all the pods within the cluster

To get all the pods within a namespace run:


Retrieve the logs from a pod

When something goes wrong with a pod. The best course of action is to check the logs or the description of a pod. Often, this will tell you exactly what is wrong.

To do this run both of these commands.

Describe pod:


Check logs:


If you wanted to see the logs in realtime. I.E have the logs keep updating and not having to run the command each time use -f

For instance, if we wanted to see all the traffic coming in from nginx we could use -f to see the logs in realtime and keep refreshing the domain http://example.com/ and see the requests instantly.

Manage users

Check all the active users on the cluster

Add new user to the cluster

Remove user

Check what your userID, accountID and ARN is

Change clusters

Get general information on TLS certificates

Get all events

This will list all events happening within kubernetes. This command is very useful, I often use it to check the past state of the cron-jobs running and checking the state of certificates or helm package installs.



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
Joshua Callis

Joshua Callis

Converted DevOps Engineer, Previously a Senior Software Engineer.