Kong / kong-dist-azure

:monkey: Kong Docs for running on Azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website

Logo

Microsoft Azure is used to create an virtual machine for development environment with Kong &including Cassandra.

Starting the environment

# clone this repository
$ git clone https://github.com/Mashape/kong-dist-azure

Change (at least) the following parameters in the azuredeploy.parameters.json :

  • newStorageAccountName : azure storage account
  • adminUsername : admin username used for the SSH Connection
  • sshKeyData : ssh key data, you can follow this tutorial to generate your ssh key
  • dnsNameForPublicIP : Public DNS Name of the Virtual Machine

Change the following parameter in the deploy.ps1 script :

  • $subscriptionId : the id of your azure subscription

Then go to the script folder and execute the script

 . .\deploy.ps1

Testing Kong

To verify Kong is running successfully, execute the following command from the host machine:

$ curl  http://<DNS>.<Location>.cloudpapp.azure.com:8001

so with the default value :

$ curl  http://kongtemplate1.westeurope.cloudapp.azure.com:8001

You should receive a JSON response:

{
  "version": "0.5.0",
  "lua_version": "LuaJIT 2.1.0-alpha",
  "tagline": "Welcome to Kong",
  "hostname": "MyAzureKongVM",
  "plugins": {
    "enabled_in_cluster": {},
    "available_on_server": [
      "ssl",
      "jwt",
      "acl",
      "cors",
      ...
      "response-ratelimiting"
    ]
  }
}

About

:monkey: Kong Docs for running on Azure

License:Apache License 2.0


Languages

Language:Shell 74.5%Language:PowerShell 25.5%