Cluster & ale Setup
Guide for configuring Kubernetes (k3s) on AWS EC2 and installing ale.
This guide demonstrates Kubernetes cluster configuration using k3s. However, ale
can be used with clusters configured through other methods such as kubeadm, kubespray, etc.
K3s Setup & Agent Install
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.
Kubernetes Metrics Server
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.
Verify that resource usage is being displayed correctly through Metrics Server using the following command:
Nginx Ingress Controller
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.
Install and Run ale
Enter the following commands to install the `ale-run` package.
Enter the following command to run `ale` in production mode.
If no specific Kubernetes cluster name was specified, it is typically created with the name default
and can be checked using the kubectl config current-context
command.
The setup is complete when the logs from pm2 display the following.
If you encounter database conflicts during execution or want to reset settings, delete existing ale data using the following command and restart: