You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Hello Kubernetes demo app
2
2
3
-
A demo app that can be deployd to a Kubernetes cluster. It displays a message, the name of the pod and details of the node it's deployed to.
3
+
A demo app that can be deployd to a Kubernetes cluster. It displays a message, and also namespace, pod, node and image details.
4
4
5
5
## Paths
6
6
@@ -17,5 +17,15 @@ The application can be configured via the following environment variables.
17
17
| PORT | No | 8080 | The port that the app listens on. |
18
18
| MESSAGE | No | "Hello world!" | The message displayed by the app. |
19
19
| RENDER_PATH_PREFIX | No | "" | The path prefix to use when rendering the urls for the static assets in the handlebar templates. <br/> Must be used when app is deployed with an ingress using a backend path for traffic to app. |
20
-
| HANDLER_PATH_PREFIX | No | "" | The path prefix to use by handlers when serving the static asset and services. <br/> Note: Must be used when app is deployed with an ingress that has a backend path for traffic to the app, but which does not rewrite the backend paths to '/'. |
20
+
| HANDLER_PATH_PREFIX | No | "" | The path prefix to use by handlers when serving the dynamic and static assets. <br/> Note: Must be used when app is deployed with an ingress that has a backend path for traffic to the app, but which does not rewrite the backend paths to '/'. |
21
+
| KUBERNETES_NAMESPACE | Yes | "-" | The Kubernetes namespace that the app has been deployed to. |
22
+
| KUBERNETES_POD_NAME | Yes | hostname | The name of the Kubernetes pod that the app is deployed into. |
23
+
| KUBERNETES_NODE_NAME | Yes | "-" | The name of the Kubernetes node that the app is deployed on. |
24
+
| CONTAINER_IMAGE | Yes | "paulbouwer/hello-kubernetes:$(cat package.json \| jq -r .version)" | The name and tag of the container image running the app. |
21
25
26
+
The application relies on the following files for configuration and operational information.
27
+
28
+
| File | Required | Information | Description |
29
+
| ---- | -------- | ----------- | ----------- |
30
+
| package.json | Yes |`.version`| The release version is used when the CONTAINER_IMAGE env is not provided. |
31
+
| info.json | Yes |`.containerImageArch`| The container image architecture is used for display. This file will be overwritten in future versions as part of the container image build process when multi-arch images are supported. |
0 commit comments