|
4 | 4 | "metadata": { |
5 | 5 | "name": "nodejs-example", |
6 | 6 | "annotations": { |
7 | | - "description": "A simple Node.js application that responds with information about the server.", |
| 7 | + "description": "A simple Node.js application with no database", |
8 | 8 | "iconClass": "icon-nodejs", |
9 | 9 | "tags": "instant-app,nodejs" |
10 | 10 | } |
|
14 | 14 | "kind": "Service", |
15 | 15 | "apiVersion": "v1", |
16 | 16 | "metadata": { |
17 | | - "name": "nodejs-frontend" |
| 17 | + "name": "${FRONTEND_SERVICE_NAME}" |
18 | 18 | }, |
19 | 19 | "spec": { |
20 | 20 | "ports": [ |
|
25 | 25 | } |
26 | 26 | ], |
27 | 27 | "selector": { |
28 | | - "name": "nodejs-frontend" |
| 28 | + "name": "${FRONTEND_SERVICE_NAME}" |
29 | 29 | } |
30 | 30 | } |
31 | 31 | }, |
32 | 32 | { |
33 | 33 | "kind": "Route", |
34 | 34 | "apiVersion": "v1", |
35 | 35 | "metadata": { |
36 | | - "name": "frontend-route" |
| 36 | + "name": "${FRONTEND_ROUTE}" |
37 | 37 | }, |
38 | 38 | "spec": { |
39 | 39 | "host" : "${FRONTEND_ROUTE}", |
40 | 40 | "to": { |
41 | 41 | "kind" : "Service", |
42 | | - "name" : "nodejs-frontend" |
| 42 | + "name" : "${FRONTEND_SERVICE_NAME}" |
43 | 43 | } |
44 | 44 | } |
45 | 45 | }, |
|
143 | 143 | ], |
144 | 144 | "replicas": 1, |
145 | 145 | "selector": { |
146 | | - "name": "nodejs-frontend" |
| 146 | + "name": "nodejs-example" |
147 | 147 | }, |
148 | 148 | "template": { |
149 | 149 | "metadata": { |
150 | 150 | "labels": { |
151 | | - "name": "nodejs-frontend" |
| 151 | + "name": "nodejs-example" |
152 | 152 | } |
153 | 153 | }, |
154 | 154 | "spec": { |
|
171 | 171 | "parameters": [ |
172 | 172 | { |
173 | 173 | "name": "SOURCE_REPOSITORY_URL", |
174 | | - "description": "The URL with your Node.js application source code.", |
| 174 | + "description": "The URL with your Node.js application source code", |
175 | 175 | "value": "https://github.com/openshift/nodejs-ex.git" |
176 | 176 | }, |
| 177 | + { |
| 178 | + "name": "FRONTEND_SERVICE_NAME", |
| 179 | + "description": "Frontend service name", |
| 180 | + "value": "nodejs" |
| 181 | + }, |
177 | 182 | { |
178 | 183 | "name": "FRONTEND_ROUTE", |
179 | | - "description": "The exposed hostname that will route to the Node.js service.", |
| 184 | + "description": "The exposed hostname that will route to the Node.js service", |
180 | 185 | "value": "nodejs.apps" |
181 | | - } |
| 186 | + } |
182 | 187 | ], |
183 | 188 | "labels": { |
184 | 189 | "template": "nodejs-example" |
|
0 commit comments