curl -sfL https://get.k3s.io | sh -s - server \ --bind-address=0.0.0.0 \ --advertise-address=[EC2의 Public IP 주소] \ --tls-san=[EC2의 Public IP 주소] \ --node-external-ip=[EC2의 Public IP 주소] \ --disable=traefik \ --docker
Kubernetes 클러스터명을 별도로 지정하지 않은 경우, 일반적으로 default 라는 이름으로 생성되며, kubectl config current-context 명령어로 조회할 수 있습니다.
3
pm2에서 조회한 로그가 다음과 같이 표시되면 실행이 완료된 것입니다.
Copy
pm2 log ale-run
Copy
...[INFO] [plugin:loader] searching plugins at /home/ubuntu/ale-run/node_modules/@ale-run/runtime/dist[INFO] [plugin:loader] 2 plugin detected in /home/ubuntu/ale-run/node_modules/@ale-run/runtime/dist[INFO] [plugin:loader] plugin @ale-run/plugin-essentials has been added[INFO] [plugin:loader] plugin @ale-run/plugin-file-store has been added[INFO] [plugin:loader] searching plugins at /home/ubuntu/ale-run/node_modules[INFO] [plugin:loader] 1 plugin detected in /home/ubuntu/ale-run/node_modules[INFO] [plugin:loader] plugin @ale-run/plugin-ai-assistant has been added[INFO] [plugin:essentials] plugin @ale-run/plugin-essentials is installed {}[INFO] [plugin:essentials] plugin @ale-run/plugin-essentials is activate {}[INFO] [plugin:file-store] plugin @ale-run/plugin-file-store is activate {}[INFO] [plugin:file-store] working dir is /home/ubuntu/.ale[INFO] [plugin:file-store] storage type is direct[INFO] [plugin:file-store] upload dir is /home/ubuntu/.ale/files[INFO] [plugin:file-store] temp dir is /home/ubuntu/.ale/temp[INFO] [plugin:file-store] endpoint is (none)[INFO] [plugin:file-store] max file size is 10MB[INFO] [plugin:ai-assistant] plugin @ale-run/plugin-ai-assistant is activate {}[WARN] [plugin] [@ale-run/plugin-ai-assistant] activate failed: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).[INFO] [runtime:init] api server listening on 0.0.0.0:9009
실행 중 데이터베이스 충돌이 발생하거나 설정을 초기화 하려는 경우, 다음의 명령을 입력하여 기존에 생성된 ale 데이터를 삭제 후 재실행하세요.