AWS Cloud
Updated 2024.12.02
AWS Cloud 환경에 Edge Conductor 설치할 수 있습니다. 쿠버네티스 객체 사용화 도구인 Helm을 사용하여 설치합니다.
아래는 EKS내부에서 수행되는 컨포넌트들 입니다.
Deploy Server 준비
aws cli 설치 및 구성하기
aws cli 설치
AWS Command Line Interface(AWS CLI)는 명령줄 셸의 명령을 사용하여 AWS 서비스와 상호 작용할 수 있는 오픈 소스 도구입니다.
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install
$ aws --version
aws-cli/2.12.7 Python/3.11.4 Linux/5.4.0-196-generic exe/x86_64.ubuntu.20 prompt/off
aws cli 설치에 대한 자세한 사항은 아래 링크를 참조하세요. https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
aws configure 구성
## aws configure 설정
$ aws configure
AWS Access Key ID [None]: {{access-key}}
AWS Secret Access Key [None]: {{secret-key}}
Default region name [None]: ap-northeast-2
Default output format [None]: json
## 설정 확인
$ cat .aws/credentials
[default]
aws_access_key_id = {{access-key}}
aws_secret_access_key = {{secret-key}}
## IAM user에 대한 구성 확인
$ aws sts get-caller-identity
{
"UserId": "userid",
"Account": "account",
"Arn": "arn:aws:iam::account:user/username"
}
access-key
: Edge Conductor 설치 AWS Cloud EKS 제어권한을 가진 역할 Access Keysecret-key
: Edge Conductor 설치 AWS Cloud EKS 제어권한을 가진 역할 Access Key
kubeconfig 설정
Edge Conductor 설치할 AWS Cloud EKS 클러스터를 제어하기위해 kubectl을 설정합니다.
## kubeconfig 설정
$ aws eks update-kubeconfig --region ap-northeast-2 --name {{eks-cluster-name}}
## kubeconfig 설정 확인
$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* arn:aws:eks:ap-northeast-2:000000000000:cluster/eks-cluster-name arn:aws:eks:ap-northeast-2:000000000000:cluster/eks-cluster-name arn:aws:eks:ap-northeast-2:000000000000:cluster/eks-cluster-name
eks-cluster-name
: Edge Conductor를 설치할 AWS Cloud EKS Cluster의 이름
Amazon EKS install-kubectl 에서 좀 더 상세한 정보를 참고할 수 있습니다.
helm 설치
Helm Community는 다양한 package manager를 통해 설치를 할수있는 방법을 제공합니다. 다른 방식(script, apt 등)으로의 설치방법은 official installation helm page을 참조하세요.
snap으로 설치
sudo snap install helm --classic
apt로 설치
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
helm 설치 확인
$ helm version
version.BuildInfo{Version:"v3.16.4", GitCommit:"7877b45b63f95635153b29a42c0c2f4273ec45ca", GitTreeState:"clean", GoVersion:"go1.22.7"}
$ helm
The Kubernetes package manager
Common actions for Helm:
- helm search: search for charts
- helm pull: download a chart to your local directory to view
- helm install: upload the chart to Kubernetes
- helm list: list releases of charts
Environment variables:
...
Edge Conductor 설치하기
Deploy Server 설정 및 helm client 설치 이후, Helm repo(Chartmuseum)을 추가하여 Edge Conductor를 설치합니다.