๐Ÿ“—
smiley book
  • Smiley Books
  • AI
    • Readme
    • openai-whisper
      • ์ƒ˜ํ”Œ ์‹คํ–‰ํ•ด๋ณด๊ธฐ
      • GPU ์„œ๋ฒ„ ์ค€๋น„ํ•˜๊ธฐ
      • API๋กœ whisper๋ฅผ ์™ธ๋ถ€์— ์˜คํ”ˆํ•˜๊ธฐ
      • ํ”„๋กฌํ”„ํŠธ ์ง€์›
      • ์‹ค์‹œ๊ฐ„ message chat
      • ํ™”๋ฉด ์ด์˜๊ฒŒ ๋งŒ๋“ค๊ธฐ์™€ ๋กœ๊ทธ์ธ
      • ํŒŒ์ด์ฌ ๊ฐ€์ƒํ™˜๊ฒฝ
      • ์‹ค์‹œ๊ฐ„ voice chat
      • fine tunning(๋ฏธ์„ธ ์กฐ์ •) ์œผ๋กœ ์„ฑ๋Šฅ ์˜ฌ๋ฆฌ๊ธฐ
      • app์—์„œ api๋ฅผ ํ˜ธ์ถœํ•˜์—ฌ ์‹ค์‹œ๊ฐ„์œผ๋กœ ํ…์ŠคํŠธ๋กœ ๋ฐ”๊ฟ”๋ณด๊ธฐ
    • ollama - llm์„ ์‰ฝ๊ฒŒ ๋‚ด์ปด์—์„œ ์‹คํ–‰
      • ollama webui
      • ollama docker
    • stable diffusion
      • SDXL - text to image
      • SD-webui
    • ChatGPT
      • ๋‹ต๋ณ€์ด ๋Š๊ธธ๋•Œ
      • ์—ญํ• ์„ ์ •ํ•˜์ž
      • ๊ตฌ์ฒด์ ์ธ ์งˆ๋ฌธ
      • ๊ฒฐ๊ณผํ˜•ํƒœ๋ฅผ ์ง€์ •
      • ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—ฌ๋Ÿฌ์ค„๋กœ ์‚ฌ์šฉํ•˜์ž.
      • ๋งˆํ‹ด ํŒŒ์šธ๋Ÿฌ ๊ธ€ ๋ฒˆ์—ญ๋ณธ
    • Prompt Engineering
    • Auto-GPT
    • Gemini
      • google ai studio
      • gemini-api
      • embedding guide
    • Huggingface
      • huggingface ์‚ฌ์šฉ๋ฒ•
      • huggingface nlp ๊ณต๋ถ€์ค‘
    • kaggle
      • download dataset
    • langchain
      • langchain์„ ๊ณต๋ถ€ํ•˜๋ฉฐ ์ •๋ฆฌ
      • basic
      • slackbot
      • rag
      • document-loader
      • website-loader
      • confluence
      • memory
      • function-call
      • langsmith
      • agent-toolkit
  • Ansible
    • templates vs files and jinja2
    • dynamic inventory
    • limit ์˜ต์…˜ ๊ฐ•์ œํ•˜๊ธฐ
    • limit ์‚ฌ์šฉํ›„ gather_fact ๋ฌธ์ œ
  • AWS
    • AWS CLI
    • EKS
      • cluster manage
      • ALB Controller
      • external-dns
      • fargate
    • ECR
    • S3
    • Certificate Manager
  • Azure
    • Azure AD OAuth Client Flow
  • Container
    • Registry
    • ๋นŒ๋“œ์‹œ์— env๊ฐ’ ์„ค์ •ํ•˜๊ธฐ
  • DB
    • PXC
      • Operator
      • PMM
      • ์‚ญ์ œ
      • GTID
      • Cross Site Replication
    • Mssql
    • Mysql
  • dotnet
    • Thread Pool
    • Connection Pool
    • Thread Pool2
  • Devops
    • Recommendation
  • GIT
    • Basic
    • Submodule
  • GitHub
    • Repository
    • GitHub Action
    • GitHub PR
    • Self Hosted Runner
    • GitHub Webhook
  • GitLab
    • CI/CD
    • CI/CD Advance
    • Ssl renew
    • CI/CD Pass env to other job
  • Go Lang
    • ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์ถ•
    • multi os binary build
    • kubectl๊ฐ™์€ cli๋งŒ๋“ค๊ธฐ
    • azure ad cli
    • embed static file
    • go study
      • pointer
      • module and package
      • string
      • struct
      • goroutine
  • Kubernetes
    • Kubernetes๋Š” ๋ฌด์—‡์ธ๊ฐ€
    • Tools
    • Install with kubespray
    • Kubernetes hardening guidance
    • 11 ways not to get hacked
    • ArgoCD
      • Install
      • CLI
      • Repository
      • Apps
      • AWS ALB ์‚ฌ์šฉ
      • Notification slack
      • Backup / DR
      • Ingress
      • 2021-11-16 Github error
      • Server Config
      • auth0 ์ธ์ฆ ์ถ”๊ฐ€(oauth,OIDC)
    • Extension
      • Longhorn pvc
      • External dns
      • Ingress nginx
      • Cert Manager
      • Kube prometheus
    • Helm
      • Subchart
      • Tip
    • Loki
    • Persistent Volume
    • TIP
      • Job
      • Pod
      • Log
  • KAFKA
    • raft
  • KVM
    • kvm cpu model
  • Linux
    • DNS Bind9
      • Cert-Manager
      • Certbot
      • Dynamic Update
      • Log
    • Export and variable
    • Grep ์‚ฌ์šฉ๋ฒ•
  • Modeling
    • C4 model introduce
    • Mermaid
    • reference
  • Monitoring
    • Readme
    • 0. What is Monitoring
    • 1. install prometheus and grafana
    • 2. grafana provisioning
    • 3. grafana dashboard
    • 4. grafana portable dashboard
    • 5. prometheus ui
    • 6. prometheus oauth2
    • Prometheus
      • Metric type
      • basic
      • rate vs irate
      • k8s-prometheus
    • Grafana
      • Expolorer
    • Node Exporter
      • advance
      • textfile collector
  • Motivation
    • 3 Simple Rule
  • OPENNEBULA
    • Install(ansible)
    • Install
    • Tip
    • Windows vm
  • Reading
    • comfort zone
    • ๋ฐฐ๋ ค
    • elon musk 6 rule for insane productivity
    • Feynman Technique
    • how to interview - elon musk
    • ๊ฒฝ์ฒญ
    • Readme
  • Redis
    • Install
    • Master-slave Architecture
    • Sentinel
    • Redis Cluster
    • Client programming c#
  • SEO
    • Readme
  • Security
    • criminalip.io
      • criminalip.io
  • Stock
    • robinhood-python
  • Terraform
    • moved block
    • output
  • vault
    • Readme
  • VS Code
    • dev container
    • dev container on remote server
  • Old fashione trend
    • curity
    • MAAS
      • Install maas
      • Manage maas
      • Tip
Powered by GitBook
On this page
  • delete eks
  • cluster ๋ฆฌ์ŠคํŠธ๋ณด๊ธฐ
  • ๊ธฐํƒ€ ์‚ฌ์šฉ๋ฒ•
  • manage cluster
  • max pod ๊ฐฏ์ˆ˜
  • node not ready status
  • ๋…ธ๋“œ๊ทธ๋ฃน ๋ณ€๊ฒฝ
  • ๋…ธ๋“œ ๊ทธ๋ฃน ์ถ”๊ฐ€
  • ๊ธฐ์กด ๋…ธ๋“œ๊ทธ๋ฃน ์‚ญ์ œ

Was this helpful?

  1. AWS
  2. EKS

cluster manage

PreviousEKSNextALB Controller

Last updated 1 year ago

Was this helpful?

delete eks

eksctl delete cluster --name cluster01 --wait

cluster ๋ฆฌ์ŠคํŠธ๋ณด๊ธฐ

eksctl get cluster

๊ธฐํƒ€ ์‚ฌ์šฉ๋ฒ•

eksctl get nodegroup --cluster=cluster01

# ๋…ธ๋“œ ํ™•์žฅ

eksctl scale nodegroup --cluster=cluster01  --nodes=2 --name=cluster01-nodes

eksctl scale nodegroup --cluster=cluster01  --nodes=3 --nodes-max=3 --name=cluster01-nodes

eksctl scale nodegroup --cluster=<clusterName> --nodes=<desiredCount> --name=<nodegroupName> [ --nodes-min=<minSize> ] [ --nodes-max=<maxSize> ]

manage cluster

eksctl scale nodegroup --cluster=<clusterName> --nodes=<desiredCount> --name=<nodegroupName> [ --nodes-min=<minSize> ] [ --nodes-max=<maxSize> ]

kubectl ์‚ฌ์šฉ

kubectl get pod --all-namespaces
kubectl get pod --all-namespaces -o wide

์ „์ฒด pod ๊ฐฏ์ˆ˜ :

kubectl get pod --all-namespaces  | wc -l

๋…ธ๋“œ๋‹น ๊ฐฏ์ˆ˜ (๋…ธ๋“œ ์ด๋ฆ„์„ ํ™•์ธํ›„ ๋…ธ๋“œ๋ณ„๋กœ ์ฒดํฌ)

kubectl get node
kubectl get pod --all-namespaces -o wide | grep ip-192-168-10-183 | wc -l
kubectl get pod --all-namespaces -o wide | grep ip-192-168-28-3 | wc -l
kubectl get pod --all-namespaces -o wide | grep ip-192-168-4-220 | wc -l
kubectl get pod --all-namespaces -o wide | grep ip-192-168-65-172 | wc -l
kubectl get pod --all-namespaces -o wide | grep ip-192-168-69-253 | wc -l
kubectl get pod --all-namespaces -o wide | grep ip-192-168-78-242 | wc -l
kubectl get pod --all-namespaces -o wide | grep ip-192-168-9-123 | wc -l

max pod ๊ฐฏ์ˆ˜

๊ณต์‹์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

ENI * (# of IPv4 per ENI - 1)  + 2

์—ฌ๊ธฐ์—์„œ eni(์ตœ๋Œ€ ๋„คํŠธ์›Œํฌ ์ธํ„ฐํŽ˜์ด์Šค ์ˆ˜) ํ•˜๊ณ  ์ธํ„ฐํŽ˜์ด์Šค๋‹น ํ”„๋ผ์ด๋ฐ‹ ์ฃผ์†Œ ์•Œ์ˆ˜ ์žˆ๋‹ค.

t3.small ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด

3 * (4-1) + 2 = 11

๋…ธ๋“œ๋‹น 11๊ฐœ์˜ pod๋ฅผ ์‚ฌ์šฉํ• ์ˆ˜ ์žˆ๋‹ค.

๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ์ •๋ฆฌ๋ฅผ ํ•ด์„œ ์ ์–ด๋‘”๊ฒŒ ์žˆ๋‹ค.

์•„๋ž˜ ํ‘œ์—์„œ ๊ฐ€๊ฒฉ์„ ๊ตฌํ• ์ˆ˜ ์žˆ๋‹ค.

pod ๊ฐฏ์ˆ˜๋ฅผ ์ž˜ ํ™•์ธํ•ด์„œ ์–ด๋А ํƒ€์ž…์ด ํŽธํ•œ๊ฑด์ง€ ๊ณ ๋ ค์•ผํ• ๋“ฏํ•˜๋‹ค.

node not ready status

node๊ฐ€ ๊ฐ‘์ž๊ธฐ not ready ์ƒํƒœ์ด๋‹ค.

k9s๋กœ ๋…ธ๋“œ ์„ ํƒํ›„ cordon ==> drain ==> delete๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ํ•ด์ฃผ์—ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‹ˆ ์ƒˆ๋กœ์šด ๋…ธ๋“œ๋ฅผ ๋งŒ๋“ค์–ด ์ค€๋‹ค.

๋…ธ๋“œ๊ทธ๋ฃน ๋ณ€๊ฒฝ

๋…ธ๋“œ ๊ทธ๋ฃน ์ถ”๊ฐ€

nodegroup.yml
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: cluster01
  region: us-west-1

managedNodeGroups:
  - name: nodegroup-2
    instanceType: t3.medium
    desiredCapacity: 4
    volumeSize: 80
    minSize: 3
    maxSize: 10
    ssh:
      allow: true
eksctl create nodegroup --config-file nodegroup.yaml

eksctl get nodegroup --cluster=cluster01

๊ธฐ์กด ๋…ธ๋“œ๊ทธ๋ฃน ์‚ญ์ œ

eksctl delete nodegroup cluster01-nodes --cluster=cluster01

https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/using-eni.html
https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt
https://aws.amazon.com/ec2/pricing/on-demand
pod