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