Kubernetes Cheat Sheet

Kubernetes Cheat Sheet Image

To administer and interact with any given Kubernetes cluster (local or remote), you must set up your kubeconfig file. By default, kubectl con guration lives at ~/.kube/config

You can also create a cluster in your local machine via Minikube (See section 3: Running Locally via Minikube)

current-context: federal-context
apiVersion: v1
clusters:
- cluster:
    api-version: v1
    server: http://cow.org:8080
  name: cow-cluster
- cluster:
    certificate-authority: path/to/my/cafile
    server: https://horse.org:4443
  name: horse-cluster
contexts:
- context:
    cluster: horse-cluster
    namespace: chisel-ns
    user: green-user
  name:federal-context
kind: Config
preferences:
  colors: true
users:
- name: green-user
user:
    client-certificate: path/to/my/client/cert
    client-key: path/to/my/client/key

Learn how to install Minikube, run locally on Minikube, install Kubectl, and use the Kubectl CLI.