backend-and-orchestration-t.../README.md
Mia von Steinkirch 23f56ef195
Update README.md
2019-10-20 22:15:11 -07:00

2.1 KiB
Executable file

Learning Kubernetes

  • A Kubernetes cluster consists of Nodes (simialr to servers)

  • Nodes run Pods, which are collections of Docker containers. Containers in a Pod share the same network.

  • The Kubernetes object responsible for launching and maintaining the desired number of pods is called a Deployment.

  • Kubernetes provides objects called a Service so thart Pods to communicate with other Pods. They are tied to Deployments through Selectors and Labels, and they can be exposed to external clients either by exposing a NodePort as a static port on each Kubernetes node or by creating a LoadBalancer object/

  • Kubernetes provides the Secret object for managing sensitive information such as passwords, API keys, and other credentials.


In this Repository


Tools

Minikube

Minikube implements a local Kubernetes cluster on macOS, Linux, and Windows. You can install it following this instructions.

Kubectl

Kubectl is a command line interface for running commands against Kubernetes clusters. You can install it here.

Checking out pods:

$ kubectl get pods --namespace=<ns-name>

Checking deployments:

$ kubectl get deployments --namespace=<ns-name>

Checking services:

$ kubectl get services --namespace=<ns-name>

Get more information about a pod:

$ kubectl describe pod --namespace=<ns-name> <pod name>

Learning