@flowfuse/driver-kubernetes 2.1.0 → 2.1.1-adf44f8-202403080952.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 +2 -2
- package/kubernetes.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,8 +27,8 @@ driver:
|
|
|
27
27
|
- `projectNamespace` the namespace Project pods should run in
|
|
28
28
|
- `projectSelector` a list of labels that should be used to select which nodes Project Pods
|
|
29
29
|
should run on
|
|
30
|
-
- `cloudProvider`
|
|
31
|
-
AWS EKS specific annotation for ALB Ingress.
|
|
30
|
+
- `cloudProvider` normally not set, but can be `aws` This triggers the adding of
|
|
31
|
+
AWS EKS specific annotation for ALB Ingress. or `openshift` to allow running on OpenShift (Enterprise license only)
|
|
32
32
|
- `privateCA` name of ConfigMap holding PEM CA Cert Bundle (file name `certs.pem`) Optional
|
|
33
33
|
- `certManagerIssuer` name of the ClusterIssuer to use to create HTTPS certs for instances (default not set)
|
|
34
34
|
- `k8sRetries` how many times to retry actions against the K8s API
|
package/kubernetes.js
CHANGED
|
@@ -318,6 +318,10 @@ const createDeployment = async (project, options) => {
|
|
|
318
318
|
localPod.spec.containers[0].env.push({ name: 'NODE_EXTRA_CA_CERTS', value: '/usr/local/ssl-certs/chain.pem' })
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
if (this._app.license.active() && this._cloudProvider === 'openshift') {
|
|
322
|
+
localPod.spec.securityContext = {}
|
|
323
|
+
}
|
|
324
|
+
|
|
321
325
|
if (stack.memory && stack.cpu) {
|
|
322
326
|
localPod.spec.containers[0].resources.requests.memory = `${stack.memory}Mi`
|
|
323
327
|
localPod.spec.containers[0].resources.limits.memory = `${stack.memory}Mi`
|
|
@@ -611,6 +615,7 @@ module.exports = {
|
|
|
611
615
|
this._k8sRetries = this._app.config.driver.options?.k8sRetries || 10
|
|
612
616
|
this._certManagerIssuer = this._app.config.driver.options?.certManagerIssuer
|
|
613
617
|
this._logPassthrough = this._app.config.driver.options?.logPassthrough || false
|
|
618
|
+
this._cloudProvider = this._app.config.driver.options?.cloudProvider
|
|
614
619
|
|
|
615
620
|
const kc = new k8s.KubeConfig()
|
|
616
621
|
|
|
@@ -1156,7 +1161,7 @@ module.exports = {
|
|
|
1156
1161
|
const properties = {
|
|
1157
1162
|
cpu: 10,
|
|
1158
1163
|
memory: 256,
|
|
1159
|
-
container: '
|
|
1164
|
+
container: 'flowfuse/node-red',
|
|
1160
1165
|
...this._app.config.driver.options?.default_stack
|
|
1161
1166
|
}
|
|
1162
1167
|
|