Kong Gateway Enterprise [ARCHIVE]
0.32-x
Install Kong Enterprise and PostgreSQL onto Ubuntu
Download Kong Gateway
-
To install Kong Gateway versions 1.3.x and earlier, open a support case to request an authenticated time-sensitive URL.
-
Click the URL to download your Kong Gateway installation package.
Obtain your Kong Enterprise license
Kong Gateway requires a license to run.
If you have lost access to your license.json
file but still have a valid
license for Kong Gateway (Enterprise), open a
support case to request the file.
-
Download the
license.json
file you received from Kong Support. -
Open the file and ensure it’s in proper JSON format:
{"license":{"signature":"91e6dd9716d12ffsn4a5ckkb16a556dbebdbc4d0a66d9b2c53f8c8d717eb93dd2bdbe2cb3ef51c20806f14345128907da35","payload":{"customer":"Kong Inc","license_creation_date":"2019-05-07","product_subscription":"Kong Enterprise Edition","admin_seats":"5","support_plan":"None","license_expiration_date":"2021-04-01","license_key":"00Q1K00000zuUAwUAM_a1V1K000005kRhuUAE"},"version":1}}
Install PostgreSQL
$ sudo apt-get install postgresql
$ sudo -i -u postgres (puts you into new shell)
Create kong
user
$ psql
> CREATE USER kong; CREATE DATABASE kong OWNER kong; ALTER USER kong WITH password 'kong';
> \q
$ exit
Finish Kong Enterprise setup steps
# Add contents of your license file (copy & paste)
$ sudo vi /etc/kong/license.json
$ sudo cp /etc/kong/kong.conf.default /etc/kong/kong.conf
# Uncomment and add 'kong' to pg_password line
$ sudo vi /etc/kong/kong.conf
Run migrations and start kong
$ sudo /usr/local/bin/kong migrations up
$ sudo /usr/local/bin/kong start
Test your Kong installation
$ curl -i -X POST \
--url http://localhost:8001/apis/ \
--data 'name=demo' \
--data 'uris=/' \
--data 'upstream_url=http://httpbin.org'
$ curl -i -X GET \
--url http://localhost:8000/ip
Setup Admin GUI
# Get the local IP address
$ ifconfig
# Uncomment the admin_listen setting, and update to
# something like this `admin_listen = 172.31.3.8:8001`
$ sudo vi /etc/kong/kong.conf
# Restart kong
$ sudo /usr/local/bin/kong stop
$ sudo /usr/local/bin/kong start
In a browser, load your server on port 8002