-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathreadme.md.orig
83 lines (67 loc) · 2.25 KB
/
readme.md.orig
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
# [Kong][website-url] :heavy_plus_sign: [Microsoft Azure](https://azure.microsoft.com/en-us/)
[![Website][website-badge]][website-url]
[![][kong-logo]][website-url]
Microsoft Azure is used to create an virtual machine for development environment with Kong &including Cassandra.
## Starting the environment
```shell
# clone this repository
$ git clone https://github.com/jdevillard/kong-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][ssh-key-tuto] 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
```PowerShell
. .\deploy.ps1
```
## Testing Kong
To verify Kong is running successfully, execute the following command from the host machine:
```shell
$ curl http://<DNS>.<Location>.cloudpapp.azure.com:8001
```
so with the default value :
```shell
$ curl http://kongtemplate1.westeurope.cloudapp.azure.com:8001
```
You should receive a JSON response:
```javascript
{
<<<<<<< HEAD
"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"]
}
=======
"tagline": "Welcome to Kong",
"version": "0.4.1",
"hostname": "precise64",
"lua_version": "LuaJIT 2.1.0-alpha",
"plugins": {
"enabled_in_cluster": {},
"available_on_server": [
...
]
}
>>>>>>> 861e502... change - update readme.md
}
```
[kong-logo]: http://i.imgur.com/4jyQQAZ.png
[website-url]: https://getkong.org/
[website-badge]: https://img.shields.io/badge/GETKong.org-Learn%20More-43bf58.svg
[website-url]: https://getkong.org/
[azure-logo]:https://avatars0.githubusercontent.com/u/6844498?v=3&s=200
[ssh-key-tuto]:https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-use-ssh-key/