akeyless-api-gateway

by akeyless.io

Helm chartv1.62.35App 5.8.0Verified publisher

A Helm chart for Kubernetes that deploys akeyless-api-gateway

About this chart

Akeyless API Gateway

Introduction

This chart bootstraps API-GATEWAY deployment on a Kubernetes cluster using the Helm package manager. This chart has been tested to work with NGINX Ingress and cert-manager.

Preqrequisites

Horizonal Auto-Scaling

Horizontal auto-scaling is based on the HorizonalPodAutoscaler object.
For it to work properly, Kubernetes metrics server must be installed in the cluster - https://github.com/kubernetes-sigs/metrics-server.

Get Repo Info

$ helm repo add akeyless https://akeylesslabs.github.io/helm-charts
$ helm repo update

See helm repo for command documentation.

Installing the Chart

The values.yaml file holds default values, replace the values with the ones from your environment where needed.

To install the chart run:

helm install RELEASE_NAME akeyless/akeyless-api-gateway

Extra Objects

extraObjects renders additional Kubernetes manifests as part of the release. Each entry is rendered with tpl, so it can reference .Release, .Chart and .Values. Custom resources require their CRDs to be installed before the release.

extraObjects:
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: "{{ .Release.Name }}-extra"
      namespace: "{{ .Release.Namespace }}"
    data:
      chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"

An entry is either a map or a string (- |). What the chart does to each:

String entryMap entry
Values and typesexactly as writtennumbers are read as 64-bit floats: 1.0 renders as 1, integers above 2^53 lose precision
Templated valueskeep their type: {{ .Values.x }} renders a numberalways strings: "{{ .Values.x }}" renders '3'
Key order, quoting, commentskeptkeys sorted, quoting normalized, comments dropped
{{ }} anywhere in the objectevaluated as a templateevaluated as a template

The chart tests cover values and types, templated values and {{ }} handling. Key order, quoting and comments follow Helm and are not tested here.

To pass a literal {{ }} through, for example a Prometheus alert using {{ $labels.instance }}, escape it as {{ "{{" }} and {{ "}}" }}. Use a string entry when a field needs an exact value or a templated number or boolean:

extraMinAvailable: 1
extraObjects:
  - |
    apiVersion: policy/v1
    kind: PodDisruptionBudget
    metadata:
      name: "{{ .Release.Name }}-extra"
      namespace: "{{ .Release.Namespace }}"
    spec:
      minAvailable: {{ .Values.extraMinAvailable }}

Parameters

The following table lists the configurable parameters of the API Gateway chart and their default values.

Deployment parameters

ParameterDescriptionDefault
image.repositoryAPI Gateway image nameakeyless/base
image.tagAPI Gateway image taglatest
image.pullPolicyAPI Gateway image pull policyAlways
containerNameAPI Gateway container nameapi-gateway
replicaCountNumber of API Gateway pods2
livenessProbeLiveness probe configuration for API GatewayCheck values.yaml file
readinessProbeReadiness probe configuration for API GatewayCheck values.yaml file
resources.limitsThe resources limits for API Gateway (If HPA is enabled these must be set){}
resources.requestsThe requested resources for API Gateway (If HPA is enabled these must be set){}
httpProxySettings.http_proxyStandard linux HTTP Proxy, should contain the URLs of the proxies for HTTPnil
httpProxySettings.https_proxyStandard linux HTTP Proxy, should contain the URLs of the proxies for HTTPSnil
httpProxySettings.no_proxyStandard linux HTTP Proxy, should contain a comma-separated list of domain extensions proxy should not be used fornil
cache.resources.limitsThe resources limits for the redis cluster cache{}

Exposure parameters

ParameterDescriptionDefault
service.typeKubernetes service typeLoadBalancer
service.portsService ports object, look at the comments for examplesCheck values.yaml file
service.annotationsService extra annotations{}
ingress.enabledEnable ingress resourcefalse
ingress.ingressClassNameA reference to an IngressClass resourcenil
ingress.annotationsIngress annotations[]
ingress.rulesIngress rules object, look at the comments for examplesCheck values.yaml file
ingress.pathPath for the default host/
ingress.tlsEnable TLS configuration for the hostnamefalse
ingress.certManagerAdd annotations for cert-managerfalse
route.enabledEnable OpenShift Route resource generation (OpenShift only)false
route.labelsRoute extra labels{}
route.annotationsRoute extra annotations{}
route.rulesRoute rules object, one Route is created per rule. hostname is optional per rule — if unset, OpenShift auto-generates one. Look at the comments for examplesCheck values.yaml file
route.pathPath for the default host/
route.tls.enabledAdd a tls stanza to the generated Route(s)false
route.tls.terminationTLS termination type. Can be one of: edge, passthrough, reencryptedge
route.tls.insecureEdgeTerminationPolicyPolicy for insecure (non-TLS) requests. Can be one of: Allow, Redirect, NoneRedirect
route.tls.certificatePEM-encoded certificate. Only used for edge/reencrypt terminationnil
route.tls.keyPEM-encoded key. Only used for edge/reencrypt terminationnil
route.tls.caCertificatePEM-encoded CA certificate. Only used for edge/reencrypt terminationnil
route.tls.destinationCACertificatePEM-encoded CA certificate used to validate the destination endpoint's certificate. Only used for reencrypt terminationnil

HPA parameters

ParameterDescriptionDefault
HPA.enabledEnable API Gateway Horizontal Pod Autoscalerfalse
HPA.minReplicasMinimum desired number of replicas1
HPA.maxReplicasMinimum desired number of replicas14
HPA.cpuAvgUtilCPU average utilization50
HPA.memAvgUtilMemory average utilization50

API-Gateway configuration parameters

ParameterDescriptionDefault
akeylessUserAuth.adminAccessIdAkeyless Access ID (can used as email address)nil
akeylessUserAuth.adminAccessKeyAkeyless Access Keynil
akeylessUserAuth.adminPasswordAkeyless Access Password (should be used only when akeylessUserAuth.adminAccessId is email)nil
akeylessUserAuth.clusterNameAPI Gateway cluster namenil
akeylessUserAuth.initialClusterDisplayNameAPI Gateway cluster display namenil
akeylessUserAuth.configProtectionKeyNameAkeyless Protection key name

Deploy akeyless-api-gateway with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has akeyless-api-gateway 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 chartakeyless-api-gateway is pinned at v1.62.35 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