diff --git a/charts/netris-controller/Chart.yaml b/charts/netris-controller/Chart.yaml index 74a9acc..f476a60 100644 --- a/charts/netris-controller/Chart.yaml +++ b/charts/netris-controller/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.3.0-alpha.10 +version: 2.3.0-alpha.11 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: 4.3.0-alpha.10 +appVersion: 4.3.0-alpha.11 home: https://netris.ai icon: https://www.netris.ai/wp-content/uploads/2021/01/logo-300.png # [todo] Change url to permalink keywords: diff --git a/charts/netris-controller/README.md b/charts/netris-controller/README.md index 0ee4919..8f4c1ff 100644 --- a/charts/netris-controller/README.md +++ b/charts/netris-controller/README.md @@ -99,6 +99,8 @@ The following table lists the configurable parameters of the netris-controller c | `web-service-backend.autoscaling.minReplicas` | Default min replicas for autoscaling | `1` | | `web-service-backend.autoscaling.maxReplicas` | Default max replicas for autoscaling | `100` | | `web-service-backend.autoscaling.targetCPUUtilizationPercentage` | The desired target CPU utilization for autoscaling | `80` | +| `web-service-backend.nodeOptions` | A space-separated list of Node.js command-line options | `--max-old-space-size=8192` | + ### Netris-Controller web-service-frontend parameters | Parameter | Description | Default | diff --git a/charts/netris-controller/templates/netris-controller-initdb.yaml b/charts/netris-controller/templates/netris-controller-initdb.yaml index 066826c..286adb0 100644 --- a/charts/netris-controller/templates/netris-controller-initdb.yaml +++ b/charts/netris-controller/templates/netris-controller-initdb.yaml @@ -1734,7 +1734,7 @@ data: INSERT INTO `tenants` VALUES (2,'DevOps',0,0,0,0,0,'region',1,10,0,'public','2019-01-15 09:37:34','2020-07-14 19:00:02','DevOps Resources'); 01-users.sql: | USE {{ .Values.mariadb.auth.database }}; - INSERT INTO `users` VALUES (1,'{{ .Values.netris.webLogin }}','{{ .Values.netris.webPassword | sha1sum }}',NULL,'Netris','info@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); + INSERT INTO `users` VALUES (1,'{{ .Values.netris.webLogin }}','{{ .Values.netris.webPassword | bcrypt }}','true','Netris','info@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); INSERT INTO `users` VALUES (2,'system',NULL,NULL,'System Generated','system@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); INSERT INTO `user_to_tenant` VALUES (1,1,0,'w'); diff --git a/charts/netris-controller/templates/web-service-backend.yaml b/charts/netris-controller/templates/web-service-backend.yaml index ab1499a..b79d015 100644 --- a/charts/netris-controller/templates/web-service-backend.yaml +++ b/charts/netris-controller/templates/web-service-backend.yaml @@ -90,6 +90,8 @@ spec: secretKeyRef: name: {{ printf "%s-%s" (include "netris-controller.fullname" .) "web-session-secret" }} key: secret-key + - name: NODE_OPTIONS + value: {{ (index .Values $microservicename).nodeOptions | quote }} ports: - name: {{ (index .Values $microservicename).service.name }} containerPort: {{ (index .Values $microservicename).service.port }} diff --git a/charts/netris-controller/values.yaml b/charts/netris-controller/values.yaml index 95ef0ca..d1790d8 100644 --- a/charts/netris-controller/values.yaml +++ b/charts/netris-controller/values.yaml @@ -100,6 +100,8 @@ web-service-backend: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 + nodeOptions: "--max-old-space-size=8192" + web-service-frontend: replicaCount: 1