Guide for configuring Kubernetes (k3s) on AWS EC2 and installing ale.
ale
can be used with clusters configured through other methods such as kubeadm, kubespray, etc.After SSH connecting to EC2, run the following command to install k3s.
To use kubectl as a non-root user, run the following commands.
Verify that the cluster is functioning properly by running the following command.
Run the following commands to install the ale agent.
The K3s installed according to this guide includes Metrics Server by default, so installation is not necessary. For clusters without Metrics Server, check the command below to install it.
Kubernetes Metrics Server Installation Command
Run the following commands to install Nginx Ingress Controller.
Run the following command to verify that the External IP of the Kubernetes service matches the Elastic IP attached to EC2.
Enter the following commands to install the `ale-run` package.
Enter the following command to run `ale` in production mode.
default
and can be checked using the kubectl config current-context
command.The setup is complete when the logs from pm2 display the following.