COver graphics_Kubernetes

Kubernetes Cheat Sheet

Daniel Oh
English

About

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

Download the Kubernetes cheat sheet to learn how to:

  • Install Minikube
  • Run locally on Minikube 
  • Install the kubectl command-line tool
  • Use the kubectl CLI

Also, see why you’ll need more than Kubernetes for DevOps. 

Red Hat Developer cheat sheets give you essential information right at your fingertips so you can work faster and smarter. Easily learn new technologies and coding concepts and quickly find the answers you need.

Excerpt

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

You can also create a cluster in your local machine 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

Related Cheat sheets