This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:kubernetes [2020/11/01 19:38] – jotasandoku | network_stuff:kubernetes [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | In Kubernetes deployment~=application. Is ‘what we build’. | + | KUBERNETES IS AN ORCHESTRATOR FOR CONTAINERS: |
| + | Hierarchy: **Cluster > Node > Pod** \\ | ||
| + | + private worker nodes | ||
| + | |||
| + | {{: | ||
| * Container engine (podman(rhel, | * Container engine (podman(rhel, | ||
| Line 6: | Line 10: | ||
| K8s is a container orchestrator, | K8s is a container orchestrator, | ||
| - | K8s provides container tooling whereas service mesh provides __**microservices**__ tooling. | + | The state of the is stored in a distributed databased [https:// |
| * [[https:// | * [[https:// | ||
| * This is the [[https:// | * This is the [[https:// | ||
| + | * **Cluster**: | ||
| * **Node**: just servers, connected to each other normally with (sdn) network | * **Node**: just servers, connected to each other normally with (sdn) network | ||
| * the devops guy deploys a network overlay on the above ^ normally with a single ' | * the devops guy deploys a network overlay on the above ^ normally with a single ' | ||
| * k8s install a ' | * k8s install a ' | ||
| * kproxy: using iptables | * kproxy: using iptables | ||
| - | | + | * **Pod**: |
| - | | + | |
| * what stays static among the ephemeral pod states: | * what stays static among the ephemeral pod states: | ||
| * service node port (nat) | * service node port (nat) | ||
| * service cluster ip (internal, from pod to pod) | * service cluster ip (internal, from pod to pod) | ||
| * service load balancer (external IP address, cluster exposed) | * service load balancer (external IP address, cluster exposed) | ||
| - | * **deployment | + | |
| + | |||
| + | \\ | ||
| + | |||
| + | Deployment-object | ||
| + | ' | ||
| + | \\ | ||
| + | |||
| + | A simple way of seeing this train is with: | ||
| + | ! in minikube | ||
| + | kubectl run mynode | ||
| + | kubectl expose | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ---- | ||
| + | **KUBERNETES NETWORKING**:\\ | ||
| + | {{ : | ||
| * Networking via: | * Networking via: | ||
| - | * (CNI) like Nuage or Flannel | + | * (CNI) like Nuage or Flannel, **weave** [[https:// |
| * low level abstraction (aci) | * low level abstraction (aci) | ||
| * service mesh: | * service mesh: | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | |||
| + | {{: | ||
| + | |||
| + | ---- | ||
| \\ | \\ | ||
| * k8s in the cloud | * k8s in the cloud | ||
| - | * In AWS: EKS[[https:// | + | * In AWS: EKS[[https:// |
| - | * In OCI: OKE [[https:// | + | * In OCI: OKE [[https:// |
| - | * Lots of interesting kubernetes information for OCI but also generally applicable [[https:// | + | * Lots of interesting kubernetes information for OCI but also generally applicable [[https:// |
| \\ | \\ | ||
| kubectl get endpoints | kubectl get endpoints | ||
| - | kubectl get svc # List all services | + | kubectl get svc # List all services. Services enable a loose coupling between dependent Pods. A Service is defined using YAML |
| kubectl get pods -n datanado-dev -l app=datanado-qubole-service | kubectl get pods -n datanado-dev -l app=datanado-qubole-service | ||
| + | kubectl get pods -n audplat-prod | ||
| + | kubectl get rs -n audplat-prod | ||
| kubectl get ing | kubectl get ing | ||
| + | |||
| | | ||