Abdullah Şamil Güser

Kubernetes a.k.a. K8s Concepts

What is Kubernetes?

What K&s can do

What K&s can’t do

K&s Architecture

K&s Architecture

 --------------------
|  Cluster           |
|  ---------------   |
| |  Node         |  |
| |  ---------    |  |
| | |  Pod    |   |  |
| |  ---------    |  |
|  ---------------   |
 --------------------

Local K8s

Docker Desktop

Windows

Minikube

Test Kubernetes Locally

kubectl cluster-info

K8s CLI & Context

K8s API

K8s API

K8s CLI

K8s Context

kubectl - Context Cheat Sheet

kubectl config current-context               # Get the current context
kubectl config get-contexts                  # List all context
kubectl config use-context [contextName]     # Change/Set the current context
kubectl config delete-context [contextName]  # Delete a context from the config file

kubectx - Quickly swithc context

2 ways to create resources

The declarative way vs the imperative way

Imperative

Declarative

What’s a YAML file?

Declarative vs Imperative example : L18-04