> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ale.run/llms.txt
> Use this file to discover all available pages before exploring further.

# 준비사항

> AWS EKS 클러스터에 ale을 설치하기 위한 준비사항입니다.

<Info>
  **안내**

  * 이 가이드는 **Kubernetes v1.30** 기준으로 작성되었습니다.
</Info>

***

## 도구 설치

<Warning>
  Windows의 경우 WSL2를 설치하여 Linux 환경에서 ale을 이용하는 것을 권장합니다.
  [여기](https://learn.microsoft.com/ko-kr/windows/wsl/install)를 참고하여 WSL2를 먼저 설치하세요.
</Warning>

<AccordionGroup>
  <Accordion title="AWS CLI">
    다음의 명령어를 입력하여 AWS CLI를 설치합니다.

    ```bash theme={null}
    curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" && \
    sudo installer -pkg AWSCLIV2.pkg -target /
    ```
  </Accordion>

  <Accordion title="eksctl">
    ```bash theme={null}
    ARCH=amd64
    # ARCH=arm64 (macOS-Apple Silicon 혹은 arm64 아키텍처의 Linux)
    PLATFORM=$(uname -s)_$ARCH
    curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz"
    tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz
    sudo mv /tmp/eksctl /usr/local/bin
    ```
  </Accordion>

  <Accordion title="kubectl">
    사용하고 있는 OS 및 아키텍처에 맞게 kubectl을 설치합니다.

    **macOS**

    <CodeGroup>
      ```bash macOS(Apple Silicon) theme={null}
      curl -LO "https://dl.k8s.io/release/v1.30.2/bin/darwin/arm64/kubectl"
      ```

      ```bash macOS(Intel) theme={null}
      curl -LO "https://dl.k8s.io/release/v1.30.2/bin/darwin/amd64/kubectl"
      ```
    </CodeGroup>

    **Linux**

    <CodeGroup>
      ```bash Linux(x86-64) theme={null}
      curl -LO https://dl.k8s.io/release/v1.30.2/bin/linux/amd64/kubectl
      ```

      ```bash Linux(arm64) theme={null}
      curl -LO https://dl.k8s.io/release/v1.30.2/bin/linux/arm64/kubectl
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="helm">
    ```bash theme={null}
    curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
    chmod 700 get_helm.sh
    ./get_helm.sh  
    ```
  </Accordion>
</AccordionGroup>

## AWS 계정 설정

### 환경변수 등록

```bash theme={null}
export CLUSTER_NAME=<생성할 EKS 클러스터명>
```

### AWS CLI 설정

```bash theme={null}
aws configure

AWS Access Key ID [********************]: AWS 액세스 키
AWS Secret Access Key [********************]: AWS 시크릿 액세스 키
Default region name [ap-northeast-2]: AWS Region
Default output format [json]: json, yaml, text, table 중 선택
```
