ducky/nginx

Paddy 2015-06-30

1:16bf0d2d11d1 Go to Latest

ducky/nginx/replication-controllers/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":"ReplicationController",
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 "replicas":1,
15 "selector":{
16 "context": "ducky",
17 "name":"nginx",
18 "repo": "ducky--nginx",
19 "role": "proxy"
20 },
21 "template":{
22 "metadata":{
23 "labels":{
24 "context": "ducky",
25 "name":"nginx",
26 "repo": "ducky--nginx",
27 "role": "proxy"
28 }
29 },
30 "spec":{
31 "volumes": [
32 {
33 "name": "jwt-volume",
34 "secret": {
35 "secretName": "jwt"
36 }
37 }
38 ],
39 "containers":[
40 {
41 "name":"ducky-nginx",
42 "image": "ducky/nginx:latest",
43 "volumeMounts": [
44 {
45 "name": "jwt-volume",
46 "readOnly": true,
47 "mountPath": "/private/kubernetes/jwt"
48 }
49 ],
50 "ports":[
51 {
52 "name": "http",
53 "containerPort":8080
54 }
55 ]
56 }
57 ]
58 }
59 }
60 }
61 }