Kubernetes 101 — Running Docker Containers on Minikube

Dânesh Hussain Zaki
1 min readDec 29, 2018

--

  • Create a docker container image (from some source and runtime)
  • To quickly deploy an app, create a Pod using the kubectl run command, which will create all the necessary components without having to deal with JSON or YAML. e.g. kubectl run imgname — image=userid/img — port=8080 — generator=run/v1
  • The following are longer steps to create from Deployment to Pods
  • Create the Deployment for the Docker container (update on changes to source)
  • A Deployment manages one or more Pods (checks the health, restarts)
  • A Deployment automatically creates Pods
  • A Pod contains one or more containers and is accessible only within its cluster
  • Pods can have annotations which can include metadata such as version, created by etc.
  • Create a service
  • A service makes a pod accessible outside its cluster for all
  • Any changes to the source will necessitate the creation steps above to be followed
  • Heapster addon (Grafana) provides monitoring of clusters
  • Kube config file has a context that is used to manage the cluster. Each context is a triple (cluster, user, namespace). It also describes the security mechanism.

--

--

Dânesh Hussain Zaki
Dânesh Hussain Zaki

No responses yet