[General] K8s / EKS 101 (์ž‘์„ฑ ์ค‘)

DaBeen Yi
2 min readSep 6, 2022

--

https://kubernetes.io/docs/concepts/overview/components/

๐ŸŒณ K8s components

  1. 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

๐Ÿ‘€ ์ฐธ๊ณ ์‚ฌ์ดํŠธ

--

--

DaBeen Yi
DaBeen Yi

No responses yet