@flowfuse/driver-kubernetes 2.22.1 → 2.22.2-212a69c-202510161205.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/README.md +4 -0
- package/kubernetes.js +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,10 @@ driver:
|
|
|
44
44
|
- `projectSelector` a list of labels that should be used to select which nodes Project Pods
|
|
45
45
|
should run on
|
|
46
46
|
- `projectLabels` a list of custom labels that should be applied to all resources created for Projects (Pods, Services, Ingresses, PVCs)
|
|
47
|
+
- `projectProbes` optional configuration for liveness, readiness and startup probes for project containers
|
|
48
|
+
- `projectProbes.livenessProbe` custom liveness probe configuration (default not set)
|
|
49
|
+
- `projectProbes.readinessProbe` custom readiness probe configuration (default not set)
|
|
50
|
+
- `projectProbes.startupProbe` custom startup probe configuration (default not set)
|
|
47
51
|
- `cloudProvider` normally not set, but can be `aws` This triggers the adding of
|
|
48
52
|
AWS EKS specific annotation for ALB Ingress. or `openshift` to allow running on OpenShift (Enterprise license only)
|
|
49
53
|
- `privateCA` name of ConfigMap holding PEM CA Cert Bundle (file name `certs.pem`) Optional
|
package/kubernetes.js
CHANGED
|
@@ -213,6 +213,16 @@ const createDeployment = async (project, options) => {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
if (this._app.config.driver.options?.projectProbes?.livenessProbe) {
|
|
217
|
+
localPod.spec.containers[0].livenessProbe = this._app.config.driver.options.projectProbes.livenessProbe
|
|
218
|
+
}
|
|
219
|
+
if (this._app.config.driver.options?.projectProbes?.readinessProbe) {
|
|
220
|
+
localPod.spec.containers[0].readinessProbe = this._app.config.driver.options.projectProbes.readinessProbe
|
|
221
|
+
}
|
|
222
|
+
if (this._app.config.driver.options?.projectProbes?.startupProbe) {
|
|
223
|
+
localPod.spec.containers[0].startupProbe = this._app.config.driver.options.projectProbes.startupProbe
|
|
224
|
+
}
|
|
225
|
+
|
|
216
226
|
const ha = await project.getSetting('ha')
|
|
217
227
|
if (ha?.replicas > 1) {
|
|
218
228
|
localDeployment.spec.replicas = ha.replicas
|
|
@@ -777,8 +787,8 @@ module.exports = {
|
|
|
777
787
|
},
|
|
778
788
|
container: {
|
|
779
789
|
label: 'Container Location',
|
|
780
|
-
// taken from https://stackoverflow.com/a/
|
|
781
|
-
validate: '^(([a-
|
|
790
|
+
// taken from https://stackoverflow.com/a/74073589
|
|
791
|
+
validate: '^((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?/)?[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?)(?::([\\w][\\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$',
|
|
782
792
|
invalidMessage: 'Invalid value - must be a Docker image',
|
|
783
793
|
description: 'Container image location, can include a tag'
|
|
784
794
|
}
|