easegress

by KubeSphere

Helm chartv1.0.0

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.

KeyTypeDefaultDescription
service.nodePortint30780nodePort for easegress service.
service.adminPortint31255nodePort for egctl access.
cluster.primaryReplicasint1number of easegress service that persists cluster data to disk
cluster.volumeTypestringemptyDiremptyDir: use pods internal filesystem that is not persisted when pod crashes. persistentVolume, create as many persistenVolumes and persistentVolumeClaims as there are nodeHostnames.
cluster.nodeHostnameslist[]nodeHostnames are hostnames of VMs/Kubernetes nodes. Only used when volumeType: persistentVolume. Note that this require nodes to be static.
secondaryReplicasint0number 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charteasegress is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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