실습 2탄 = 11/11
# 물리장비를 4대로 늘렸다가 다시 1대로 줄여보자.
1
# 터미널2
watch -d kubectl get svc,nodes -A
2
service/kube-ops-view 웹브라우저료 접속 : 80
3
export AWS_REGION=ap-northeast-2
export CLUSTER_NAME=eks-demo2
eksctl scale nodegroup --cluster $CLUSTER_NAME --name node-group --nodes 1 --nodes-min 1 --nodes-max 6
https://brunch.co.kr/@topasvga/1680
1
사용 확인?
k get ns,no,po,deploy,rs,ing
2
서비스, 디플로이먼트 등 삭제
cd ~/environment/ecsdemo-frontend
kubectl delete -f kubernetes/service.yaml
kubectl delete -f kubernetes/deployment.yaml
cd ~/environment/ecsdemo-crystal
kubectl delete -f kubernetes/service.yaml
kubectl delete -f kubernetes/deployment.yaml
cd ~/environment/ecsdemo-nodejs
kubectl delete -f kubernetes/service.yaml
kubectl delete -f kubernetes/deployment.yaml
export DASHBOARD_VERSION="v2.0.0"
kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/${DASHBOARD_VERSION}/src/deploy/recommended/kubernetes-dashboard.yaml
3
# EKS 클러스터 삭제
eksctl delete cluster --name=eks-demo2
4
사용 확인 ?
k get ns,no,po,deploy,rs,ing
The connection to the server localhost:8080 was refused - did you specify the right host or port?
5
EKS 콘솔에서 클러스터 삭제 확인
6
EC2 삭제 필요
7
수동 삭제 ?
1) EC2 > AutoScaling group > 삭제
필수!!
삭제하지 않으면 EC2를 삭제해도 다시 자동 생성된다.
2) EKS > Clusters > Compute > Node 삭제
3) EKS > Clusters 삭제
4) LB 삭제
8
# AWS EKS 실습 2탄
https://brunch.co.kr/@topasvga/1882
9
https://brunch.co.kr/@topasvga/1679
10
https://brunch.co.kr/@topasvga/1704