Cheat Sheet

Kubernetes Cheat Sheet

By Daniel Oh
March 24, 2017
Kubernetes Cheat Sheet Cover
Kubernetes Cheat Sheet

Kubernetes is an open-source platform for automating deployment, scaling and operations of application containers across clusters of hosts, providing container-centric infrastructure.  

Learn how to

  • Install Minikube
  • Run locally on Minikube 
  • Install Kubectl
  • Use the Kubectl CLI

Also, see why you’ll need more than Kubernetes for DevOps.  Created by Red Hat’s own Daniel Oh for your ease. 

Cheat Sheet Excerpt

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
- cluster:
    api-version: v1
  name: cow-cluster
- cluster:
    certificate-authority: path/to/my/cafile
  name: horse-cluster
- context:
    cluster: horse-cluster
    namespace: chisel-ns
    user: green-user
kind: Config
  colors: true
- name: green-user
    client-certificate: path/to/my/client/cert
    client-key: path/to/my/client/key

Want to see more? Get the full cheat sheet.

Tags: Containers Cheat Sheet Minikube kubernetes kubeconfig Kubectl