๐ณ K8s components
- Control plane
- Master node
- node(s) ๊ด๋ฆฌ
- Scheduling๊ณผ ๊ฐ์ Global cluster ๊ด๋ฆฌ
- Cluster์์ ๋ฐ์ํ๋ ๋ชจ๋ ์ด๋ฒคํธ ๊ฐ์ง
- ์ผ๋ฐ์ ์ผ๋ก ํ๋์ Machine์์ ๋์๊ฐ (User container๋ ๋ณ๋๋ก ์์น์ํด)
2. Kube-api server
- Control panel์ FrontEnd
- K8s์ API๋ฅผ ์ธ๋ถ์ ๋ ธ์ถ์ํค๋ ์ญํ
- ๊ด๋ฆฌ์๋ ๋ค์์ API instances๋ฅผ ๋์์์ผ์ ํธ๋ํฝ์ ๋ถ์ฐ์ํฌ์ ์๋ค.
3. Kubelet
๐ณ K8s networking
(1) Node ๐ control plane
(2) Control plane ๐ node
- API server to kubelet
- API server to proxy
๐ณ K8s terms
๐ Cluster
namespace
- Namespaces are a way to divide cluster resources between multiple users (via resource quota).
- namespace: Virtual Sub-cluster๋ฅผ ๊ตฌ๋ถํ๋/organizeํ๋ ๋ฐฉ๋ฒ
- kube-system: System processes
- kube-public: Publicly accessible data (Configmap)
- kube-node-lease: Heartbeats of nodes
- default: Resources you create are located here
๐ Workloads
ReplicaSets
- ๋์๋๊ณ ์๋ Pods ๊ฐฏ์ ์กฐ์ (To maintain a stable set of replica Pods running at any given time.)
- Deployment๊ฐ ReplicaSets๋ฅผ ๊ด๋ฆฌํ๋ higher-level์ธ๋งํผ Deployment๋ฅผ ํตํ replicasets ๊ด๋ฆฌ๋ฅผ ๊ถ๊ณ ํจ. (์ฆ, ์ง์ ์ ์ธ ReplicaSets ๊ด๋ฆฌ ๐ โโ๏ธ)
_
Deployment
- A Deployment provides declarative updates for Pods and ReplicaSets.
- Rollback ๊ฐ๋ฅ
StatefulSet
- StatefulSet is the workload API object used to manage stateful applications.
DaemonSet
- A Daemonset will not run more than one replica per node. Another advantage of using a Daemonset is that, if you add a node to the cluster, then the Daemonset will automatically spawn a pod on that node, which a deployment will not do.
- Rollback ๋ถ๊ฐ๋ฅ
(์ํฉ์ ๋ฐ๋ผ Deployment
, StatefulSet
, DaemonSet
์ค ํ๋ ์ ํ)
_
๐ Config and Secret
Configmap
- External configuration of oneselfโs application