devzone 7.6.1 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/SHA256SUMS +6 -6
- package/bin/devzone-darwin-amd64 +0 -0
- package/bin/devzone-darwin-arm64 +0 -0
- package/bin/devzone-linux-amd64 +0 -0
- package/bin/devzone-linux-arm64 +0 -0
- package/bin/devzone-windows-amd64.exe +0 -0
- package/bin/devzone-windows-arm64.exe +0 -0
- package/charts/devzone-workspace/templates/statefulset.yaml +29 -0
- package/charts/devzone-workspace/values.yaml +17 -0
- package/package.json +1 -1
package/bin/SHA256SUMS
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
988ed068d4e7f3845784fddb955b479f1e566f8e1872100c4ef3138324636d17 devzone-linux-amd64
|
|
2
|
+
525f1bb516a25c847c7e77de13655e464d9b35a9cf431ee1f5d2f43df3335a7e devzone-linux-arm64
|
|
3
|
+
bb638ad8640ab1131d9402306d3232b8595368a649acc7a743fb7b22353acb53 devzone-darwin-amd64
|
|
4
|
+
820102028a8d62790240acf1f12f404976bfd389f6f196e62b738581f7c93314 devzone-darwin-arm64
|
|
5
|
+
6ac508ddf3f847ca6449198dcd39e0b2c053b5a9bb8f37e86c9ba100bcd2b506 devzone-windows-amd64.exe
|
|
6
|
+
719332e9472633e2f70b1c66970247f73080888bced4f892048efa208eca76a2 devzone-windows-arm64.exe
|
package/bin/devzone-darwin-amd64
CHANGED
|
Binary file
|
package/bin/devzone-darwin-arm64
CHANGED
|
Binary file
|
package/bin/devzone-linux-amd64
CHANGED
|
Binary file
|
package/bin/devzone-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -184,6 +184,35 @@ spec:
|
|
|
184
184
|
value: tcp://127.0.0.1:1234
|
|
185
185
|
resources:
|
|
186
186
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
187
|
+
{{- /*
|
|
188
|
+
Liveness probe (#982): exit 1 when pids.current is above thresholdPercent
|
|
189
|
+
of pids.max, so that the kubelet restarts the container. The script is
|
|
190
|
+
bash, passed as an argument; the threshold is its $1. Missing files or
|
|
191
|
+
pids.max "max" give exit 0. CGROUP_DIR overrides the cgroup directory
|
|
192
|
+
(the bats test uses fake files). Settings and reason: values.yaml.
|
|
193
|
+
Helm comment: not in the rendering.
|
|
194
|
+
*/}}
|
|
195
|
+
{{- if .Values.livenessProbe.enabled }}
|
|
196
|
+
livenessProbe:
|
|
197
|
+
exec:
|
|
198
|
+
command:
|
|
199
|
+
- bash
|
|
200
|
+
- -c
|
|
201
|
+
- |
|
|
202
|
+
dir="${CGROUP_DIR:-/sys/fs/cgroup}"
|
|
203
|
+
cur="$(cat "$dir/pids.current" 2>/dev/null)" || exit 0
|
|
204
|
+
max="$(cat "$dir/pids.max" 2>/dev/null)" || exit 0
|
|
205
|
+
[[ "$cur" =~ ^[0-9]+$ && "$max" =~ ^[0-9]+$ ]] || exit 0
|
|
206
|
+
(( max > 0 )) || exit 0
|
|
207
|
+
(( cur * 100 > max * $1 )) && exit 1
|
|
208
|
+
exit 0
|
|
209
|
+
- liveness
|
|
210
|
+
- {{ .Values.livenessProbe.thresholdPercent | quote }}
|
|
211
|
+
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
|
212
|
+
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
|
213
|
+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
|
214
|
+
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
|
215
|
+
{{- end }}
|
|
187
216
|
volumeMounts:
|
|
188
217
|
- name: workspace
|
|
189
218
|
mountPath: /workspaces/projets
|
|
@@ -77,6 +77,23 @@ resources:
|
|
|
77
77
|
cpu: "500m"
|
|
78
78
|
memory: "4Gi"
|
|
79
79
|
|
|
80
|
+
# Liveness probe of the workspace container (#982). It fails when pids.current
|
|
81
|
+
# goes past thresholdPercent of pids.max (the process limit), and the kubelet
|
|
82
|
+
# then restarts the container: the volumes are kept, only the processes go.
|
|
83
|
+
# PID 1 reaps the zombies (#967), but nothing stops another runaway (a fork loop,
|
|
84
|
+
# processes that never exit): the probe catches that case. The values are
|
|
85
|
+
# deliberately cautious, a short spike must never restart the workspace: the
|
|
86
|
+
# probe waits 120 s after the start, runs every 60 s and needs 5 failures in a
|
|
87
|
+
# row (5 minutes above the threshold at least). Unreadable or unlimited cgroup
|
|
88
|
+
# files count as a success. enabled: false removes the probe.
|
|
89
|
+
livenessProbe:
|
|
90
|
+
enabled: true
|
|
91
|
+
thresholdPercent: 85
|
|
92
|
+
periodSeconds: 60
|
|
93
|
+
failureThreshold: 5
|
|
94
|
+
initialDelaySeconds: 120
|
|
95
|
+
timeoutSeconds: 10
|
|
96
|
+
|
|
80
97
|
persistence:
|
|
81
98
|
# Identities, logins and caches, kept from one restart to the next. Each path
|
|
82
99
|
# (relative to the home of vscode) is mounted from this volume at its usual
|