Admin Notebook: How to be quick with kubectl 1.19 [CKA]

Photo by Thomas Lipke on Unsplash

Kubernetes admin has to work on multiple things in parallel. Growing popularity on Kubernetes will force you sooner or later to become a ninja quick. In my opinion working with Imperative commands will help you out performing simple task quickly. Examples are as follows:




Taint/Toleration — Tolerations are applied to pods, Taints are on nodes.

Node Maintenance





A Role always sets permissions within a particular namespace; when you create a Role or you can specify the namespace where it should belong. A RoleBinding grants permissions within a specific namespace whereas a ClusterRoleBinding grants that access cluster-wide.

ClusterRole and ClusterRoleBinding

ClusterRole, by contrast, is a non-namespaced resource.

*** A RoleBinding can also reference a ClusterRole to grant the permissions defined in that ClusterRole to resources inside the RoleBinding’s namespace.***

***After you create a binding, you cannot change the Role or ClusterRole that it refers to. If you try to change a binding’s roleRef, you get a validation error. If you do want to change the roleRef for a binding, you need to remove the binding object and create a replacement.***


Service Account

Last bit, You can generate the following resources with a kubectl command as above example —


K8s cluster specifc

ETCD Backup

ETCD Restore

Keep Learning !

In quest of understanding How Systems Work !

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