akeyless-api-gateway

by joaquinito2051

Helm chartv1.41.2App 4.4.1

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

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

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

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 namenil
akeylessUserAuth.allowedAccessIDsList of allowed Access ID's to enable multiple users to be able to login and manage API GW.nil
akeylessUserAuth.allowedAccessPermissionsList of allowed accesses to enable multiple users to be able to login and manage the Gateway with specific permissions and sub claims. See values.yaml file for more details.nil
akeylessUserAuth.useGwForOidcIf set to true, the oidc login will use the gateway as callback redirect targetfalse
customerFragmentsAPI Gateway customer fragmentnil
adminAccessIdExistingSecretUse k8s existing secret, must include the following key: admin-access-idCheck values.yaml file
adminAccessKeyExistingSecretUse k8s existing secret, must include the following key: admin-access-keyCheck values.yaml file
adminPasswordExistingSecretUse k8s existing secret, must include the following key: admin-passwordCheck values.yaml file
adminBase64CertificateExistingSecretUse k8s existing secret, must include the following key: admin-certificate (base64)Check values.yaml file
adminBase64CertificateKeyExistingSecretUse k8s existing secret, must include the following key: admin-certificate-key (base64)Check values.yaml file
adminUIDInitTokenExistingSecretUse k8s existing secret, must include the following key: admin-uid-init-tokenCheck values.yaml file
allowedAccessIDsExistingSecretUse k8s existing secret, must include the following key: allowed-access-idsCheck values.yaml file
allowedAccessPermissionsExistingSecretUse k8s existing secret, must include the following key: allowed-access-permissionsCheck values.yaml file
customerFragmentsExistingSecretUse k8s existing secret, must include the following key: customer-fragmentsCheck values.yaml file
customerFragmentsEncodedExistingSecretUse k8s existing secret, must include the following key: customer-fragments (base64)Check values.yaml file

API-Gateway defaults section configurat

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.41.2 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