For AWS Cloud
목차
- Edge App Infra Login
- Helm 설치
- Edge App Helm Chart 다운로드 및 인프라 정보 작성
- Edge App 설치/삭제/업데이트
- Edge Conductor 상에서 확인 후 사용
1. Edge App Infra Login
-
Edge App infra의 자원들을 이용하기 위해 key 계정의 확보가 필수 입니다 (클라우드 관리자에게 Key를 문의해 주세요)
-
awscli, curl, kubectl 사전 설치
sudo apt-get install awscli
sudo apt-get install curl
sudo curl -LO https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -
AWS ECR 로그인
aws configure set aws_access_key_id {"AWS Access Key"}
aws configure set aws_secret_access_key {"AWS Secret Access Key"}
aws configure set default.region {"region"}
aws ecr get-login-password --region {region}| sudo docker login --username AWS --password-stdin {AWS Account ID}.dkr.ecr.{region}.amazonaws.com -
개발 환경 설정
aws eks update-kubeconfig --region ap-northeast-2 --name {AWS cluster name}
kubectl config set-context --current --namespace={namespace}
2. Helm 설치
- helm 설치
sudo snap install helm --classic
3. Edge App Helm Chart 다운로드 및 환경구성
-
Edge App Helm chart 설치
git clone https://github.com/mellerikat/Edge-App.git
-
Edge App 환경 구성(최초 1회 )
helm install init ./setup-pacakge/edgeapp-setup-[--version].tgz-f [namespace_setting_file] -n {namespace}
(ex)
helm install init ./setup-pacakge/edgeapp-setup-1.0.0.tgz -f example/aws-setup-for-each-namespace.yaml -n edge-app
-
환경에 따라 맞는 하나의 예제파일을 선택해서 수정후 -f 옵션 뒤에 넣는다
- example/aws-setup-for-each-namespace.yaml
- example/gcp-setup-for-each-namespace.yaml
- example/wsl-setup-for-each-namespace.yaml
-
저장소, Rolebind 등 엣지앱이 동작위한 환경 설정을 위한 파일 (aws 예시)
# aws-setup-for-each-namespace.yaml
global:
is_aws: True #aws환경인 경우 True
cluster_set: True #저장소 setting 최초 세팅이라면 True
env:
namespace: edge-app #k8s namespace
serviceaccount: edge-app #k8s service account
pv:
pv_enable: True #저장소를 사용할것이라면 True
volumeHandle: {"storage name"} #할당받은 저장소 이름을 적는다