brunch

You can make anything
by writing

C.S.Lewis

by Master Seo Jul 09. 2021

EKS 2탄-11. EKS- 배포 삭제

실습 2탄 = 11/11

EKS- 배포 삭제


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=eksworkshop-eksctl


$ eksctl delete cluster --name=eksworkshop-eksctl

2021-07-09 09:13:02 [ℹ]  eksctl version 0.55.0

2021-07-09 09:13:02 [ℹ]  using region us-west-2

2021-07-09 09:13:02 [ℹ]  deleting EKS cluster "eksworkshop-eksctl"

2021-07-09 09:13:02 [ℹ]  deleted 0 Fargate profile(s)

2021-07-09 09:13:03 [✔]  kubeconfig has been updated

2021-07-09 09:13:03 [ℹ]  cleaning up AWS load balancers created by Kubernetes objects of Kind Service or Ingress

2021-07-09 09:13:04 [ℹ]  2 sequential tasks: { delete nodegroup "nodegroup", delete cluster control plane "eksworkshop-eksctl" [async] }

2021-07-09 09:13:04 [ℹ]  will delete stack "eksctl-eksworkshop-eksctl-nodegroup-nodegroup"



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

Cloud9  삭제




다음 과정  3탄


https://brunch.co.kr/@topasvga/1704





<10>   AWS EKS 실습 2탄


https://brunch.co.kr/@topasvga/1882


https://brunch.co.kr/@topasvga/1679



감사합니다







매거진의 이전글 EKS 2탄-10. EKS- ArgoCD 배포 삭제
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari