실습 2탄 = 10/11
1
확인
alias k=kubectl
complete -F __start_kubectl k
k get ns,no,po,deploy,rs,ing
NAME STATUS AGE
namespace/amazon-cloudwatch Active 169m
namespace/argocd Active 65m
namespace/default Active 47h
namespace/ecsdemo-nodejs Active 47m
namespace/kube-node-lease Active 47h
namespace/kube-public Active 47h
namespace/kube-system Active 47h
NAME STATUS ROLES AGE VERSION
node/ip-192-168-26-162.us-west-2.compute.internal Ready <none> 46h v1.17.12-eks-7684af
node/ip-192-168-37-63.us-west-2.compute.internal Ready <none> 46h v1.17.12-eks-7684af
node/ip-192-168-94-145.us-west-2.compute.internal Ready <none> 46h v1.17.12-eks-7684af
2
사용하지 않는 모듈 삭제
argocd app delete ecsdemo-nodejs
$ argocd app delete ecsdemo-nodejs
Are you sure you want to delete 'ecsdemo-nodejs' and all its resources? [y/n]
y
3
모니터링?
watch argocd app get ecsdemo-nodejs
아래 처럼 메시지 나오면 정상
FATA[0000] rpc error: code = NotFound desc = applications.argoproj.io "ecsdemo-nodejs" not found
4
ArgoCD 삭제 ?
kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
5
사용하지 않는 네임 스페이스 삭제
kubectl delete ns argocd
kubectl delete ns ecsdemo-nodejs
6
확인
k get ns,no,po,deploy,rs,ing
NAME STATUS AGE
namespace/amazon-cloudwatch Active 170m
namespace/default Active 47h
namespace/kube-node-lease Active 47h
namespace/kube-public Active 47h
namespace/kube-system Active 47h
NAME STATUS ROLES AGE VERSION
node/ip-192-168-26-162.us-west-2.compute.internal Ready <none> 46h v1.17.12-eks-7684af
node/ip-192-168-37-63.us-west-2.compute.internal Ready <none> 46h v1.17.12-eks-7684af
node/ip-192-168-94-145.us-west-2.compute.internal Ready <none> 46h v1.17.12-eks-7684af
https://brunch.co.kr/@topasvga/1702
<10> AWS EKS 실습 2탄
https://brunch.co.kr/@topasvga/1882
https://brunch.co.kr/@topasvga/1679
감사합니다.