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: README.md
+142-5Lines changed: 142 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,40 @@
2
2
3
3
This application is used in the [cloud-native training catalogue](https://www.cloud-native.com/trainings/). The images can be found in [quay](https://quay.io/repository/kubermatic-labs/training-application?tab=tags).
4
4
5
+
The aim of this application is to be used in the context of trainings for Docker, Kubernetes, Istio, Helm, ...
6
+
7
+
## Functionality of the application
8
+
9
+
**Nothing**, besides possibly (depending on the application configuration) showing a cute cat image 🙀.
|`help`| Get info about available commands and endpoints |
@@ -25,3 +49,116 @@ This application is used in the [cloud-native training catalogue](https://www.cl
25
49
|`leak cpu`| Leak CPU |
26
50
|`request <url>`| Request a URL, e.g., `request https://www.kubermatic.com/`|
27
51
|`delay / <seconds>`| Set delay for the root endpoint (`/`) in seconds, e.g., `delay / 5`|
52
+
53
+
## Configuring the application
54
+
55
+
### `configFilePath`
56
+
57
+
-**Description**:
58
+
-**Type**:
59
+
-**Default Value**:
60
+
-**Usage**:
61
+
| Path to the config file | string | "./training-application.conf" || application arg, you can set this via eg `./training-application --configFilePath my.conf`|
62
+
63
+
### `alive`
64
+
65
+
-**Description**:
66
+
-**Type**:
67
+
-**Default Value**:
68
+
-**Usage**:
69
+
70
+
| Flag to indicate the applications liveness | bool | true || configurable via the commands `set alive` and `set dead`|
71
+
72
+
### `ready`
73
+
74
+
-**Description**:
75
+
-**Type**:
76
+
-**Default Value**:
77
+
-**Usage**:
78
+
79
+
| Flag to indicate the applications readiness | bool | false || true after `startUpDelaySeconds` , false on graceful shutdown; configurable via the commands `set ready` and `set unready`|
80
+
81
+
### `name`
82
+
83
+
-**Description**:
84
+
-**Type**:
85
+
-**Default Value**:
86
+
-**Usage**:
87
+
88
+
| The name of the application | string | "not set" || via config file or via the environment variable `APP_NAME`|
89
+
90
+
### `version`
91
+
92
+
-**Description**:
93
+
-**Type**:
94
+
-**Default Value**:
95
+
-**Usage**:
96
+
97
+
| The version of the application | string | "not set" || via config file or via the environment variable `APP_VERSION`|
98
+
99
+
### `message`
100
+
101
+
-**Description**:
102
+
-**Type**:
103
+
-**Default Value**:
104
+
-**Usage**:
105
+
106
+
| A message to be shown on the root endpoint | string | "not set" || via config file or via the environment variable `APP_MESSAGE`|
107
+
108
+
### `color`
109
+
110
+
-**Description**:
111
+
-**Type**:
112
+
-**Default Value**:
113
+
-**Usage**:
114
+
115
+
| The background color of the root endpoint | string | "not set" || via config file or via the environment variable `APP_COLOR`|
116
+
117
+
### `rootDelaySeconds`
118
+
119
+
-**Description**:
120
+
-**Type**:
121
+
-**Default Value**:
122
+
-**Usage**:
123
+
124
+
| For delaying requests to the root endpoint | int | 0 || via config file or via the environment variable `APP_ROOT_DELAY_SECONDS`|
125
+
126
+
### `startUpDelaySeconds`
127
+
128
+
-**Description**:
129
+
-**Type**:
130
+
-**Default Value**:
131
+
-**Usage**:
132
+
133
+
|Time the application will take to start | int | 0 || via config file or via the environment variable `APP_START_UP_DELAY_SECONDS`|
134
+
135
+
### `tearDownDelaySeconds`
136
+
137
+
-**Description**:
138
+
-**Type**:
139
+
-**Default Value**:
140
+
-**Usage**:
141
+
142
+
| Time the application will take to gracefully shut down | int | 0 || via config file or via the environment variable `APP_TEAR_DOWN_DELAY_SECONDS`|
143
+
144
+
### `logToFileOnly`
145
+
146
+
-**Description**:
147
+
-**Type**:
148
+
-**Default Value**:
149
+
-**Usage**:
150
+
151
+
| Log **only** to the file `training-application.log`, if set to true no logging to stdout will happen | bool | false || via config file |
152
+
153
+
### `catMode`
154
+
155
+
-**Description**:
156
+
-**Type**:
157
+
-**Default Value**:
158
+
-**Usage**:
159
+
160
+
| Flag to get cute cat images in the rood endpoint | bool | false || via config file |
0 commit comments