easegress
by KubeSphere
About this chart
Easegress chart
Helm charts for installing Easegress on Kubernetes.
Setup
# create namespace at first
kubectl create ns easegress
Prepare persistent volume (optional)
If you are going to use persistent volumes, run following shell command on each persistent volume node:
sudo mkdir /opt/easegress
sudo chmod 700 /opt/easegress
Usage
# install with default values
helm install easegress -n easegress ./helm-charts/easegress
# install with custom values
helm install easegress -n easegress ./helm-charts/easegress \
--set service.nodePort=4080 \
--set image.tag=v1.4.0 \
# install cluster of 3 primary and 2 secondary Easegress instances
helm install easegress -n easegress ./helm-charts/easegress \
--set cluster.primaryReplicas=3 \
--set cluster.secondaryReplicas=2
# install using persistentVolume on node with hostname "hostname-xyz"
# to support recovery when pod crashes
helm install easegress -n easegress ./helm-charts/easegress \
--set cluster.volumeType=persistentVolume \
--set 'cluster.nodeHostnames={hostname-xyz}'
Add filters and objects to Easegress:
egctl --server {NODE_IP}:31255 object create -f pipeline.yaml
where NODE_IP is the IP address a node running Easegress pod and pipeline.yaml Easegress object definition.
Uninstall
helm uninstall easegress -n easegress
# sometimes helm does not delete pvc and pv. Delete manually each pvc.
kubectl delete pvc easegress-pv-easegress-0 -n easegress
# same for easegress-pv-easegress-i...n
Parameters
The following table lists the configurable parameters of the MegaEase Easegress Helm installation.
| Key | Type | Default | Description |
|---|---|---|---|
| service.nodePort | int | 30780 | nodePort for easegress service. |
| service.adminPort | int | 31255 | nodePort for egctl access. |
| cluster.primaryReplicas | int | 1 | number of easegress service that persists cluster data to disk |
| cluster.volumeType | string | emptyDir | emptyDir: use pods internal filesystem that is not persisted when pod crashes. persistentVolume, create as many persistenVolumes and persistentVolumeClaims as there are nodeHostnames. |
| cluster.nodeHostnames | list | [] | nodeHostnames are hostnames of VMs/Kubernetes nodes. Only used when volumeType: persistentVolume. Note that this require nodes to be static. |
| secondaryReplicas | int | 0 | number of easegress service that not persists cluster data to disk. |
By default, k8s use range 30000-32767 for NodePort. Make sure you choose right port number.
Deploy easegress with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has easegress on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charteasegress is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply