akeyless-api-gateway
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
| Parameter | Description | Default |
|---|---|---|
image.repository | API Gateway image name | akeyless/base |
image.tag | API Gateway image tag | latest |
image.pullPolicy | API Gateway image pull policy | Always |
containerName | API Gateway container name | api-gateway |
replicaCount | Number of API Gateway pods | 2 |
livenessProbe | Liveness probe configuration for API Gateway | Check values.yaml file |
readinessProbe | Readiness probe configuration for API Gateway | Check values.yaml file |
resources.limits | The resources limits for API Gateway (If HPA is enabled these must be set) | {} |
resources.requests | The requested resources for API Gateway (If HPA is enabled these must be set) | {} |
httpProxySettings.http_proxy | Standard linux HTTP Proxy, should contain the URLs of the proxies for HTTP | nil |
httpProxySettings.https_proxy | Standard linux HTTP Proxy, should contain the URLs of the proxies for HTTPS | nil |
httpProxySettings.no_proxy | Standard linux HTTP Proxy, should contain a comma-separated list of domain extensions proxy should not be used for | nil |
Exposure parameters
| Parameter | Description | Default |
|---|---|---|
service.type | Kubernetes service type | LoadBalancer |
service.ports | Service ports object, look at the comments for examples | Check values.yaml file |
service.annotations | Service extra annotations | {} |
ingress.enabled | Enable ingress resource | false |
ingress.ingressClassName | A reference to an IngressClass resource | nil |
ingress.annotations | Ingress annotations | [] |
ingress.rules | Ingress rules object, look at the comments for examples | Check values.yaml file |
ingress.path | Path for the default host | / |
ingress.tls | Enable TLS configuration for the hostname | false |
ingress.certManager | Add annotations for cert-manager | false |
HPA parameters
| Parameter | Description | Default |
|---|---|---|
HPA.enabled | Enable API Gateway Horizontal Pod Autoscaler | false |
HPA.minReplicas | Minimum desired number of replicas | 1 |
HPA.maxReplicas | Minimum desired number of replicas | 14 |
HPA.cpuAvgUtil | CPU average utilization | 50 |
HPA.memAvgUtil | Memory average utilization | 50 |
API-Gateway configuration parameters
| Parameter | Description | Default |
|---|---|---|
akeylessUserAuth.adminAccessId | Akeyless Access ID (can used as email address) | nil |
akeylessUserAuth.adminAccessKey | Akeyless Access Key | nil |
akeylessUserAuth.adminPassword | Akeyless Access Password (should be used only when akeylessUserAuth.adminAccessId is email) | nil |
akeylessUserAuth.clusterName | API Gateway cluster name | nil |
akeylessUserAuth.initialClusterDisplayName | API Gateway cluster display name | nil |
akeylessUserAuth.configProtectionKeyName | Akeyless Protection key name | nil |
akeylessUserAuth.allowedAccessIDs | List of allowed Access ID's to enable multiple users to be able to login and manage API GW. | nil |
akeylessUserAuth.allowedAccessPermissions | List 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.useGwForOidc | If set to true, the oidc login will use the gateway as callback redirect target | false |
customerFragments | API Gateway customer fragment | nil |
adminAccessIdExistingSecret | Use k8s existing secret, must include the following key: admin-access-id | Check values.yaml file |
adminAccessKeyExistingSecret | Use k8s existing secret, must include the following key: admin-access-key | Check values.yaml file |
adminPasswordExistingSecret | Use k8s existing secret, must include the following key: admin-password | Check values.yaml file |
adminBase64CertificateExistingSecret | Use k8s existing secret, must include the following key: admin-certificate (base64) | Check values.yaml file |
adminBase64CertificateKeyExistingSecret | Use k8s existing secret, must include the following key: admin-certificate-key (base64) | Check values.yaml file |
adminUIDInitTokenExistingSecret | Use k8s existing secret, must include the following key: admin-uid-init-token | Check values.yaml file |
allowedAccessIDsExistingSecret | Use k8s existing secret, must include the following key: allowed-access-ids | Check values.yaml file |
allowedAccessPermissionsExistingSecret | Use k8s existing secret, must include the following key: allowed-access-permissions | Check values.yaml file |
customerFragmentsExistingSecret | Use k8s existing secret, must include the following key: customer-fragments | Check values.yaml file |
customerFragmentsEncodedExistingSecret | Use 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartakeyless-api-gateway is pinned at v1.41.2 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