Helm chartv3.0.4App 3.0.4Verified publisherOfficial

Official Gravitee.io Helm chart for Alert Engine

About this chart

Gravitee.io Alert Engine Helm Chart

Chart supported versions: 1.0.x and higher

Components

This chart will deploy the following:

  • Gravitee.io Alert Engine

Kubernetes API

AE embeds Hazelcast to propagate and process events between each node. In order to make Hazelcast work best when embedded and deployed under a Kubernetes cluster, we pre-configured the auto-discovery to work with the Kubernetes API.

Kubernetes API mode means that each node makes a REST call to Kubernetes Master in order to discover IPs of PODs (with Hazelcast members).

The chart creates a ServiceAccount and Role with the required permissions by default (engine.managedServiceAccount=true). If you want to manage the ServiceAccount yourself, set --set engine.managedServiceAccount=false.

Installing

  • Add the Gravitee.io helm charts repo
    $ helm repo add graviteeio https://helm.gravitee.io
    
  • Install it
    $ helm install graviteeio-ae graviteeio/ae
    

Create a chart archive

To package this chart directory into a chart archive, run:

$ helm package .

Installing the Chart

To install the chart from the Helm repository with the release name graviteeio-ae:

$ helm install graviteeio-ae graviteeio/ae

To install the chart using the chart archive, run:

$ helm install graviteeio-ae ae-1.0.0.tgz

Configuration

The following tables list the configurable parameters of the Gravitee.io Alert Engine chart and their default values.

Shared configuration

To configure common features such as:

ParameterDescriptionDefault
chaos.enabledEnable Chaos testfalse

Gravitee Alert Engine

KeyTypeDefaultDescription
engine.authentication.adminPasswordstring"adminadmin"
engine.authentication.enabledbooltrue
engine.autoscaling.enabledbooltrue
engine.autoscaling.maxReplicasint3
engine.autoscaling.minReplicasint1
engine.autoscaling.targetAverageUtilizationint50
engine.autoscaling.targetMemoryAverageUtilizationint80
engine.enabledbooltrue
engine.image.pullPolicystring"Always"
engine.image.repositorystring"graviteeio/ae-engine"
engine.ingress.annotations."kubernetes.io/app-root"string"/"
engine.ingress.annotations."kubernetes.io/ingress.class"string"nginx"
engine.ingress.annotations."kubernetes.io/rewrite-target"string"/"
engine.ingress.annotations."nginx.ingress.kubernetes.io/enable-rewrite-log"string"true"
engine.ingress.annotations."nginx.ingress.kubernetes.io/ssl-redirect"string"false"
engine.ingress.enabledbooltrue
engine.ingress.hosts[0]string"ae.example.com"
engine.ingress.pathstring"/"
engine.ingress.tls[0].hosts[0]string"ae.example.com"
engine.ingress.tls[0].secretNamestring"api-custom-cert"
engine.logging.debugboolfalse
engine.logging.file.enabledbooltrue
engine.logging.file.encoderPatternstring"%d{HH:mm:ss.SSS} [%thread] [%X{api}] %-5level %logger{36} - %msg%n"
engine.logging.file.rollingPolicystring"\u003crollingPolicy class=\"ch.qos.logback.core.rolling.TimeBasedRollingPolicy\"\u003e\n \u003c!-- daily rollover --\u003e\n \u003cfileNamePattern\u003e${gravitee.home}/logs/gravitee_%d{yyyy-MM-dd}.log\u003c/fileNamePattern\u003e\n \u003c!-- keep 30 days' worth of history --\u003e\n \u003cmaxHistory\u003e30\u003c/maxHistory\u003e\n\u003c/rollingPolicy\u003e\n"
engine.logging.graviteeLevelstring"DEBUG"
engine.logging.stdout.encoderPatternstring"%d{HH:mm:ss.SSS} [%thread] [%X{api}] %-5level %logger{36} - %msg%n"
engine.namestring"engine"
engine.reloadOnConfigChangebooltrue
engine.replicaCountint1
engine.resources.limits.cpustring"500m"
engine.resources.limits.memorystring"512Mi"
engine.resources.requests.cpustring"200m"
engine.resources.requests.memorystring"256Mi"
engine.service.externalPortint82
engine.service.internalPortint8072
engine.service.internalPortNamestring"http"
engine.service.typestring"ClusterIP"
engine.ssl.clientAuthboolfalse
engine.ssl.enabledboolfalse
engine.typestring"Deployment"

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release -f values.yaml graviteeio/ae

Tip: You can use the default values.yaml

Run unit tests

Install unittest helm plugin

helm plugin install https://github.com/helm-unittest/helm-unittest

Inside ae directory, run:

helm unittest -3 -f 'tests/*.yaml' .

Deploy ae with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ae 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 chartae is pinned at v3.0.4 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