EKS 생성 & 셋업
6. helm 을 이용해 aws-load-balancer-controller 생성

6. helm 을 이용해 aws-load-balancer-controller 생성

Cloud9 에 helm 설치

helm 설치에 대한 명령어는 helm.sh - Installing Helm ## From Script (opens in a new tab) 의 내용을 발췌해왔다.
ALB Ingress Controller 를 helm 을 이용해서 설치 예정이다. 따라서 Cloud9 에 helm 을 설치해야 한다.


terminal
## helm.sh 라는 이름으로 헬름 설치 파일을 curl 로 다운로드
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
 
## 다운로드 받은 파일 확안
$ ls
README.md  download  get_helm.sh  minimum-cluster.yml
 
## 실행 권한 변경
$ chmod 0700 get_helm.sh
 
## 설치파일 실행
$ ./get_helm.sh 
Downloading https://get.helm.sh/helm-v3.13.1-linux-amd64.tar.gz
Verifying checksum... Done.
Preparing to install helm into /usr/local/bin
helm installed into /usr/local/bin/helm

helm 을 이용해 aws-load-balancer-controller 설치

terminal
$ helm repo add eks https://aws.github.io/eks-charts
"eks" has been added to your repositories
 
$ helm repo update eks
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "eks" chart repository
Update Complete. ⎈Happy Helming!⎈
 
$ helm install aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=gitops-study-k8scluster --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller
NAME: aws-load-balancer-controller
LAST DEPLOYED: Sun Dec 24 14:11:01 2023
NAMESPACE: kube-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
AWS Load Balancer controller installed!
 
 
## 설치 확인
## kube-system 네임스페이스 아래에 aws-load-balancer-controller 가 존재하는지 찾아본다.
$ kubectl get deployment -n kube-system aws-load-balancer-controller
NAME                           READY   UP-TO-DATE   AVAILABLE   AGE
aws-load-balancer-controller   2/2     2            2           104s