Skip to content

Commit a35a815

Browse files
committed
fix: updated helm chart to reflect all recent changes
1 parent 4dbd74d commit a35a815

File tree

7 files changed

+74
-68
lines changed

7 files changed

+74
-68
lines changed

deploy/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Helm chart for Kubernetes for installing lowcoder
44

55
type: application
66
# Chart version (change every time you make changes to the chart)
7-
version: 0.1.0
7+
version: 1.0.0
88

99
# Lowcoder version
1010
appVersion: "latest"

deploy/helm/README.md

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,27 @@ $ helm delete -n lowcoder my-lowcoder
3838

3939
## Parameters
4040

41+
## Global
42+
43+
| Name | Description | Value |
44+
| --------------------------------------- | --------------------------------------------------------------------------------- | -------------- |
45+
| `global.config.userId` | User ID of user running Lowcoder server application in container | `9001` |
46+
| `global.config.groupId` | Group ID of user running Lowcoder server application in container | `9001` |
47+
| `global.config.corsAllowedDomains` | CORS allowed domains | `*` |
48+
| `global.config.enableUserSignUp` | Enable users signing up to lowcoder via login page | `true` |
49+
| `global.config.encryption.password` | Encryption password - CHANGE IT! | `lowcoder.org` |
50+
| `global.config.encryption.salt` | Encryption salt - CHANGE IT! | `lowcoder.org` |
51+
| `global.config.apiKeySecret` | API-KEY secret, should be a string of at least 32 random characters - CHANGE IT | `5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b` |
52+
| `global.config.maxQueryTimeout` | Maximum query timeout in seconds | `120` |
53+
| `global.config.maxRequestSize` | Maximum request size | `20m` |
54+
| `global.config.nodeServiceUrl` | URL to node-service server if using external one (disabled by default) | |
55+
| `global.config.apiServiceUrl` | URL to api-service server if using external one (disabled by default) | |
56+
| `global.defaults.maxOrgsPerUser` | Maximum allowed organizations per user | `100` |
57+
| `global.defaults.maxMembersPerOrg` | Maximum allowed members per organization | `1000` |
58+
| `global.defaults.maxGroupsPerOrg` | Maximum groups allowed per organization | `100` |
59+
| `global.defaults.maxAppsPerOrg` | Maximum allowed applications per organization | `1000` |
60+
| `global.defaults.maxDevelopers` | Maximum allowed developer accounts | `100` |
61+
4162
### Redis
4263

4364
| Name | Description | Value |
@@ -56,32 +77,3 @@ All available parameters can be found in [Bitnami Redis Chart](https://github.co
5677

5778
All available parameters can be found in [Bitnami MongoDB Chart](https://github.com/bitnami/charts/tree/main/bitnami/mongodb/#parameters)
5879

59-
### Lowcoder server api-service
60-
61-
| Name | Description | Value |
62-
| --------------------------------------- | --------------------------------------------------------------------------- | ---------------- |
63-
| `apiService.config.userId` | User ID of user running Lowcoder server application in container | `9001` |
64-
| `apiService.config.groupId` | Group ID of user running Lowcoder server application in container | `9001` |
65-
| `apiService.config.corsAllowedDomains` | CORS allowed domains | `*` |
66-
| `apiService.config.encryption.password` | Encryption password | `lowcoder.org` |
67-
| `apiService.config.encryption.salt` | Encryption salt | `lowcoder.org` |
68-
| `apiService.config.enableUserSignUp` | Enable users signing up to lowcoder via login page | `true` |
69-
| `apiService.config.nodeServiceUrl` | URL to node-service server if using external Lowcoder server | |
70-
71-
### Lowcoder server node-service
72-
73-
| Name | Description | Value |
74-
| --------------------------------------- | --------------------------------------------------------------------------- | ---------------- |
75-
| `nodeService.config.userId` | User ID of user running Lowcoder service application in container | `9001` |
76-
| `nodeService.config.groupId` | Group ID of user running Lowcoder service application in container | `9001` |
77-
| `nodeService.config.apiServiceUrl` | URL to api-service server if using external Lowcoder server | |
78-
79-
### Lowcoder frontend (client)
80-
81-
| Name | Description | Value |
82-
| --------------------------------------- | --------------------------------------------------------------------------- | ---------------- |
83-
| `frontend.config.userId` | User ID of nginx user running Lowcoder client application in container | `9001` |
84-
| `frontend.config.groupId` | Group ID of nginx user running Lowcoder client application in container | `9001` |
85-
| `frontend.config.apiServiceUrl` | URL to api-service server if using external Lowcoder server | `""` |
86-
| `frontend.config.nodeServiceUrl` | URL to node-service server if using external Lowcoder server | |
87-

deploy/helm/templates/api-service/configMap.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ data:
1717
{{- else }}
1818
REDIS_URL: {{ .Values.redis.externalUrl | quote }}
1919
{{- end }}
20-
{{- if .Values.apiService.nodeServiceUrl }}
21-
LOWCODER_NODE_SERVICE_URL: {{ .Values.apiService.nodeServiceUrl | quote }}
20+
{{- if .Values.global.config.nodeServiceUrl }}
21+
LOWCODER_NODE_SERVICE_URL: {{ .Values.global.config.nodeServiceUrl | quote }}
2222
{{- else }}
2323
LOWCODER_NODE_SERVICE_URL: "http://{{ $name }}-node-service:{{ .Values.nodeService.service.port }}"
2424
{{- end }}
25-
PUID: {{ .Values.apiService.config.userId | default "9001" | quote }}
26-
PGID: {{ .Values.apiService.config.groupId | default "9001" | quote }}
27-
CORS_ALLOWED_DOMAINS: {{ .Values.apiService.config.corsAllowedDomains | default "*" | quote }}
28-
ENABLE_USER_SIGN_UP: {{ .Values.apiService.config.enableUserSignUp | default "true" | quote }}
25+
PUID: {{ .Values.global.config.userId | default "9001" | quote }}
26+
PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
27+
CORS_ALLOWED_DOMAINS: {{ .Values.global.config.corsAllowedDomains | default "*" | quote }}
28+
ENABLE_USER_SIGN_UP: {{ .Values.global.config.enableUserSignUp | default "true" | quote }}
29+
LOWCODER_MAX_QUERY_TIMEOUT: {{ .Values.global.config.maxQueryTimeout | default "120" | quote }}
30+
DEFAULT_ORGS_PER_USER: {{ .Values.global.defaults.maxOrgsPerUser | default "100" | quote }}
31+
DEFAULT_ORG_MEMBER_COUNT: {{ .Values.global.defaults.maxMembersPerOrg | default "1000" | quote }}
32+
DEFAULT_ORG_GROUP_COUNT: {{ .Values.global.defaults.maxGroupsPerOrg | default "100" | quote }}
33+
DEFAULT_ORG_APP_COUNT: {{ .Values.global.defaults.maxAppsPerOrg | default "1000" | quote }}
34+
DEFAULT_DEVELOPER_COUNT: {{ .Values.global.defaults.maxDevelopers | default "50" | quote }}
2935

deploy/helm/templates/api-service/secrets.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ stringData:
2020
{{- else }}
2121
MONGODB_URL: {{ .Values.mongodb.externalUrl | quote }}
2222
{{- end }}
23-
ENCRYPTION_PASSWORD: {{ .Values.apiService.config.encryption.password | default "lowcoder.org" | quote }}
24-
ENCRYPTION_SALT: {{ .Values.apiService.config.encryption.salt | default "lowcoder.org" | quote }}
25-
23+
ENCRYPTION_PASSWORD: {{ .Values.global.config.encryption.password | default "lowcoder.org" | quote }}
24+
ENCRYPTION_SALT: {{ .Values.global.config.encryption.salt | default "lowcoder.org" | quote }}
25+
LOWCODER_API_KEY_SECRET: "{{ .Values.global.config.apiKeySecret }}"

deploy/helm/templates/frontend/configMap.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
data:
14-
PUID: {{ .Values.frontend.config.userId | default "9001" | quote }}
15-
PGID: {{ .Values.frontend.config.groupId | default "9001" | quote }}
16-
{{- if .Values.frontend.config.apiServiceUrl }}
17-
LOWCODER_API_SERVICE_URL: {{ .Values.frontend.config.apiServiceUrl | trimSuffix "/" | quote }}
14+
PUID: {{ .Values.global.config.userId | default "9001" | quote }}
15+
PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
16+
{{- if .Values.global.config.apiServiceUrl }}
17+
LOWCODER_API_SERVICE_URL: {{ .Values.global.config.apiServiceUrl | trimSuffix "/" | quote }}
1818
{{- else }}
1919
LOWCODER_API_SERVICE_URL: "http://{{ $name }}-api-service:{{ .Values.apiService.service.port }}"
2020
{{- end }}
21-
{{- if .Values.frontend.config.nodeServiceUrl }}
22-
LOWCODER_NODE_SERVICE_URL: {{ .Values.frontend.config.nodeServiceUrl | trimSuffix "/" | quote }}
21+
{{- if .Values.global.config.nodeServiceUrl }}
22+
LOWCODER_NODE_SERVICE_URL: {{ .Values.global.config.nodeServiceUrl | trimSuffix "/" | quote }}
2323
{{- else }}
2424
LOWCODER_NODE_SERVICE_URL: "http://{{ $name }}-node-service:{{ .Values.nodeService.service.port }}"
2525
{{- end }}
26+
LOWCODER_MAX_REQUEST_SIZE: {{ .Values.global.config.maxRequestSize | default "20m" | quote }}
27+
LOWCODER_MAX_QUERY_TIMEOUT: {{ .Values.global.config.maxQueryTimeout | default "120" | quote }}
2628

deploy/helm/templates/node-service/configMap.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ metadata:
1212
{{- toYaml . | nindent 4 }}
1313
{{- end }}
1414
data:
15-
PUID: {{ .Values.nodeService.config.userId | default "9001" | quote }}
16-
PGID: {{ .Values.nodeService.config.groupId | default "9001" | quote }}
17-
{{- if .Values.nodeService.apiServiceUrl }}
18-
LOWCODER_API_SERVICE_URL: {{ .Values.nodeService.apiServiceUrl | quote }}
15+
PUID: {{ .Values.global.config.userId | default "9001" | quote }}
16+
PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
17+
{{- if .Values.global.config.apiServiceUrl }}
18+
LOWCODER_API_SERVICE_URL: {{ .Values.global.config.apiServiceUrl | quote }}
1919
{{- else }}
2020
LOWCODER_API_SERVICE_URL: "http://{{ $name }}-api-service:{{ .Values.apiService.service.port }}"
2121
{{- end }}

deploy/helm/values.yaml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ imagePullSecrets: []
66
nameOverride: ""
77
fullnameOverride: ""
88

9+
#
10+
# Configuration values for Lowcoder
11+
#
12+
global:
13+
config:
14+
# ID of user and group runnning the service within the container
15+
userId: 9001
16+
groupId: 9001
17+
corsAllowedDomains: "*"
18+
enableUserSignUp: true
19+
encryption:
20+
password: "lowcoder.org"
21+
salt: "lowcoder.org"
22+
#nodeServiceUrl:
23+
#apiServiceUrl:
24+
apiKeySecret: "5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
25+
maxQueryTimeout: 120
26+
maxRequestSize: "20m"
27+
defaults:
28+
maxOrgsPerUser: 100
29+
maxMembersPerOrg: 1000
30+
maxGroupsPerOrg: 100
31+
maxAppsPerOrg: 1000
32+
maxDevelopers: 50
33+
934
#
1035
# Redis
1136
#
@@ -59,15 +84,6 @@ apiService:
5984
# Overrides the image tag whose default is the chart appVersion.
6085
#tag: "latest"
6186

62-
config:
63-
userId: 9001
64-
groupId: 9001
65-
corsAllowedDomains: "*"
66-
enableUserSignUp: true
67-
encryption:
68-
password: "lowcoder.org"
69-
salt: "lowcoder.org"
70-
#nodeServiceUrl:
7187

7288
service:
7389
type: ClusterIP
@@ -93,10 +109,6 @@ nodeService:
93109
# Overrides the image tag whose default is the chart appVersion.
94110
#tag: "latest"
95111

96-
config:
97-
userId: 9001
98-
groupId: 9001
99-
#apiServiceUrl:
100112

101113
service:
102114
type: ClusterIP
@@ -119,12 +131,6 @@ frontend:
119131
# Overrides the image tag whose default is the chart appVersion.
120132
#tag: "latest"
121133

122-
config:
123-
userId: 9001
124-
groupId: 9001
125-
#apiServiceUrl:
126-
#nodeServiceUrl:
127-
128134
service:
129135
type: NodePort
130136
port: 80

0 commit comments

Comments
 (0)