Cheat Sheet

Kubernetes Cheat Sheet

  • By
    Daniel Oh
  • Published: Fri, 03/24/2017 - 22:05

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

Want to see more? Get the full cheat sheet.
Tags:
Containers
Cheat Sheet
Minikube
kubernetes
kubeconfig
Kubectl