ducky/nginx

Paddy 2015-06-30

1:16bf0d2d11d1 Go to Latest

ducky/nginx/services/nginx.json

Make nginx kubernetes-ready. Add our upstream definitions, to route requests to our ducky-authd service and our ducky-subscriptionsd service. Remove the test handler that was installed at /. Update our proxy-redirect rules so the proxy redirects actually work now, and what used to redirect us to /profiles now redirects us to /auth/profiles. Define a Replication Controller that will spin up nginx pods for us and auto-attach the necessary JWT secret volume to read our JWT secret. Define a Service that will route to nginx for us.

History
1 {
2 "kind":"Service",
3 "apiVersion":"v1",
4 "metadata":{
5 "name":"ducky-nginx",
6 "labels":{
7 "name":"nginx",
8 "context": "ducky",
9 "repo": "ducky--nginx",
10 "role": "proxy"
11 }
12 },
13 "spec":{
14 "ports": [
15 {
16 "name": "http",
17 "port": 80,
18 "targetPort": "http"
19 },
20 {
21 "name": "https",
22 "port": 443,
23 "targetPort": "https"
24 }
25 ],
26 "selector":{
27 "name":"nginx",
28 "context": "ducky",
29 "repo": "ducky--nginx",
30 "role": "proxy"
31 },
32 "type": "LoadBalancer"
33 }
34 }