APIm Hybrid Deployment Guide¶
Introduction
This documentation page relates to the installation of the client (On-Prem / Private Cloud) part of the API Management platform in a Hybrid architecture (SaaS + On-prem / Private cloud).
Architecture¶
Architecture
You can find all architecture information (components descriptions, diagrams) in the architecture section.
Hybrid Architecture Self-Hosted (Hybrid) gateway¶
Installation¶
Online documentation and assets
Steps :
- Add the Gravitee.io Helm charts repository.
- Install using the
values.yaml
file.
Here is the fullvalues.yaml
example, please customize it following the Configuration sections.
Enterprise License
If you are using enterprise plugins, you have to install a license file.
Please chose one of these options
- Add the
license.key
in thevalues.yml
file - Add a helm install command parameter
--set license.key=
and provide the B64 encoded license :
- linux:
base64 -w 0 license.key
- macOS:
base64 license.key
- windows (certutil):
certutil -encode license.key tmp.b64 && findstr /v /c:- tmp.b64 > license.b64 && del tmp.b64
and copy the context of the license.b64 generated file.
Online documentation
Local file structure
.
├── config
│ ├── gateway
│ │ └── gravitee.yml # (1)
│ └── logstash
│ └── logstash.conf # (2)
├── docker-compose.yml
├── logs
│ └── apim-gateway-dev
└── plugins # (3)
├── gravitee-apim-repository-hazelcast-3.18.3.zip
└── gravitee-apim-repository-redis-3.18.3.zip
- If you prefer to override the default
gravitee.yml
configuration file, instead of using the environement variables in thedocker-compose.yml
file. - Logstash configuration file.
- Additional plugins location.
Download plugins
Download plugins
Online documentation
Configuration¶
There is at least 3 connections to configure :
- The connection to the SaaS Management plane with the Bridge Gateway.
- The connection to push Analytics and Logs with file or tcp reporter pushing data for logstash to send them to the SaaS storage.
- The connection the local rate limits database.
- [Optional] The connection to the SaaS Alert Engine.
Management¶
Into the values.yaml
configuration file :
Into the gravitee.yml
configuration file :
Online documentation
Analytics and Logs¶
Files¶
Into the values.yaml
configuration file :
values.yaml | |
---|---|
Direct (TCP)¶
Warning
Choosing the direct connection may result in a loss of data. If the connection between the gateway and logstash is broken the newly generated analytics and logs data will be lost.
Into the values.yaml
configuration file :
values.yaml | |
---|---|
Online documentation
Rate limits¶
values.yaml | |
---|---|
Online documentation
Alert Engine¶
Into the values.yaml
configuration file :
values.yaml | |
---|---|
Full example¶
Into the values.yaml
configuration file :
gravitee.yml | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
Redis¶
Installation¶
Bitnami helm charts
TL;DR
helm repo add redis https://charts.bitnami.com/bitnami
helm install gravitee-redis redis/redis \
--set architecture=standalone \
--create-namespace \
--namespace gravitee-apim
Get the generated redis password
echo $(kubectl get secret --namespace gravitee-apim gravitee-redis -o jsonpath="{.data.redis-password}" | base64 -d)
Production Architecture
Redis Bitnami Cluster topologies to go "Master-Replicas" or "Master-Replicas with Sentinel"
Configuration¶
Easy peasy
No specific configuration is needed.
Logstash¶
Installation¶
Helm charts
TL;DR using the official helm chart
docker-compose.yml | |
---|---|
Configuration¶
Helm charts
Online documentation
Created: June 15, 2022