Skip to content

fix: updated helm chart to reflect all recent changes #618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: updated helm chart to reflect all recent changes
  • Loading branch information
ludomikula committed Jan 7, 2024
commit a35a815a55ebd95761bc5d24a78547630ba4b335
2 changes: 1 addition & 1 deletion deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for Kubernetes for installing lowcoder

type: application
# Chart version (change every time you make changes to the chart)
version: 0.1.0
version: 1.0.0

# Lowcoder version
appVersion: "latest"
Expand Down
50 changes: 21 additions & 29 deletions deploy/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,27 @@ $ helm delete -n lowcoder my-lowcoder

## Parameters

## Global

| Name | Description | Value |
| --------------------------------------- | --------------------------------------------------------------------------------- | -------------- |
| `global.config.userId` | User ID of user running Lowcoder server application in container | `9001` |
| `global.config.groupId` | Group ID of user running Lowcoder server application in container | `9001` |
| `global.config.corsAllowedDomains` | CORS allowed domains | `*` |
| `global.config.enableUserSignUp` | Enable users signing up to lowcoder via login page | `true` |
| `global.config.encryption.password` | Encryption password - CHANGE IT! | `lowcoder.org` |
| `global.config.encryption.salt` | Encryption salt - CHANGE IT! | `lowcoder.org` |
| `global.config.apiKeySecret` | API-KEY secret, should be a string of at least 32 random characters - CHANGE IT | `5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b` |
| `global.config.maxQueryTimeout` | Maximum query timeout in seconds | `120` |
| `global.config.maxRequestSize` | Maximum request size | `20m` |
| `global.config.nodeServiceUrl` | URL to node-service server if using external one (disabled by default) | |
| `global.config.apiServiceUrl` | URL to api-service server if using external one (disabled by default) | |
| `global.defaults.maxOrgsPerUser` | Maximum allowed organizations per user | `100` |
| `global.defaults.maxMembersPerOrg` | Maximum allowed members per organization | `1000` |
| `global.defaults.maxGroupsPerOrg` | Maximum groups allowed per organization | `100` |
| `global.defaults.maxAppsPerOrg` | Maximum allowed applications per organization | `1000` |
| `global.defaults.maxDevelopers` | Maximum allowed developer accounts | `100` |

### Redis

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

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

### Lowcoder server api-service

| Name | Description | Value |
| --------------------------------------- | --------------------------------------------------------------------------- | ---------------- |
| `apiService.config.userId` | User ID of user running Lowcoder server application in container | `9001` |
| `apiService.config.groupId` | Group ID of user running Lowcoder server application in container | `9001` |
| `apiService.config.corsAllowedDomains` | CORS allowed domains | `*` |
| `apiService.config.encryption.password` | Encryption password | `lowcoder.org` |
| `apiService.config.encryption.salt` | Encryption salt | `lowcoder.org` |
| `apiService.config.enableUserSignUp` | Enable users signing up to lowcoder via login page | `true` |
| `apiService.config.nodeServiceUrl` | URL to node-service server if using external Lowcoder server | |

### Lowcoder server node-service

| Name | Description | Value |
| --------------------------------------- | --------------------------------------------------------------------------- | ---------------- |
| `nodeService.config.userId` | User ID of user running Lowcoder service application in container | `9001` |
| `nodeService.config.groupId` | Group ID of user running Lowcoder service application in container | `9001` |
| `nodeService.config.apiServiceUrl` | URL to api-service server if using external Lowcoder server | |

### Lowcoder frontend (client)

| Name | Description | Value |
| --------------------------------------- | --------------------------------------------------------------------------- | ---------------- |
| `frontend.config.userId` | User ID of nginx user running Lowcoder client application in container | `9001` |
| `frontend.config.groupId` | Group ID of nginx user running Lowcoder client application in container | `9001` |
| `frontend.config.apiServiceUrl` | URL to api-service server if using external Lowcoder server | `""` |
| `frontend.config.nodeServiceUrl` | URL to node-service server if using external Lowcoder server | |

18 changes: 12 additions & 6 deletions deploy/helm/templates/api-service/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@ data:
{{- else }}
REDIS_URL: {{ .Values.redis.externalUrl | quote }}
{{- end }}
{{- if .Values.apiService.nodeServiceUrl }}
LOWCODER_NODE_SERVICE_URL: {{ .Values.apiService.nodeServiceUrl | quote }}
{{- if .Values.global.config.nodeServiceUrl }}
LOWCODER_NODE_SERVICE_URL: {{ .Values.global.config.nodeServiceUrl | quote }}
{{- else }}
LOWCODER_NODE_SERVICE_URL: "http://{{ $name }}-node-service:{{ .Values.nodeService.service.port }}"
{{- end }}
PUID: {{ .Values.apiService.config.userId | default "9001" | quote }}
PGID: {{ .Values.apiService.config.groupId | default "9001" | quote }}
CORS_ALLOWED_DOMAINS: {{ .Values.apiService.config.corsAllowedDomains | default "*" | quote }}
ENABLE_USER_SIGN_UP: {{ .Values.apiService.config.enableUserSignUp | default "true" | quote }}
PUID: {{ .Values.global.config.userId | default "9001" | quote }}
PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
CORS_ALLOWED_DOMAINS: {{ .Values.global.config.corsAllowedDomains | default "*" | quote }}
ENABLE_USER_SIGN_UP: {{ .Values.global.config.enableUserSignUp | default "true" | quote }}
LOWCODER_MAX_QUERY_TIMEOUT: {{ .Values.global.config.maxQueryTimeout | default "120" | quote }}
DEFAULT_ORGS_PER_USER: {{ .Values.global.defaults.maxOrgsPerUser | default "100" | quote }}
DEFAULT_ORG_MEMBER_COUNT: {{ .Values.global.defaults.maxMembersPerOrg | default "1000" | quote }}
DEFAULT_ORG_GROUP_COUNT: {{ .Values.global.defaults.maxGroupsPerOrg | default "100" | quote }}
DEFAULT_ORG_APP_COUNT: {{ .Values.global.defaults.maxAppsPerOrg | default "1000" | quote }}
DEFAULT_DEVELOPER_COUNT: {{ .Values.global.defaults.maxDevelopers | default "50" | quote }}

6 changes: 3 additions & 3 deletions deploy/helm/templates/api-service/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ stringData:
{{- else }}
MONGODB_URL: {{ .Values.mongodb.externalUrl | quote }}
{{- end }}
ENCRYPTION_PASSWORD: {{ .Values.apiService.config.encryption.password | default "lowcoder.org" | quote }}
ENCRYPTION_SALT: {{ .Values.apiService.config.encryption.salt | default "lowcoder.org" | quote }}

ENCRYPTION_PASSWORD: {{ .Values.global.config.encryption.password | default "lowcoder.org" | quote }}
ENCRYPTION_SALT: {{ .Values.global.config.encryption.salt | default "lowcoder.org" | quote }}
LOWCODER_API_KEY_SECRET: "{{ .Values.global.config.apiKeySecret }}"
14 changes: 8 additions & 6 deletions deploy/helm/templates/frontend/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
PUID: {{ .Values.frontend.config.userId | default "9001" | quote }}
PGID: {{ .Values.frontend.config.groupId | default "9001" | quote }}
{{- if .Values.frontend.config.apiServiceUrl }}
LOWCODER_API_SERVICE_URL: {{ .Values.frontend.config.apiServiceUrl | trimSuffix "/" | quote }}
PUID: {{ .Values.global.config.userId | default "9001" | quote }}
PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
{{- if .Values.global.config.apiServiceUrl }}
LOWCODER_API_SERVICE_URL: {{ .Values.global.config.apiServiceUrl | trimSuffix "/" | quote }}
{{- else }}
LOWCODER_API_SERVICE_URL: "http://{{ $name }}-api-service:{{ .Values.apiService.service.port }}"
{{- end }}
{{- if .Values.frontend.config.nodeServiceUrl }}
LOWCODER_NODE_SERVICE_URL: {{ .Values.frontend.config.nodeServiceUrl | trimSuffix "/" | quote }}
{{- if .Values.global.config.nodeServiceUrl }}
LOWCODER_NODE_SERVICE_URL: {{ .Values.global.config.nodeServiceUrl | trimSuffix "/" | quote }}
{{- else }}
LOWCODER_NODE_SERVICE_URL: "http://{{ $name }}-node-service:{{ .Values.nodeService.service.port }}"
{{- end }}
LOWCODER_MAX_REQUEST_SIZE: {{ .Values.global.config.maxRequestSize | default "20m" | quote }}
LOWCODER_MAX_QUERY_TIMEOUT: {{ .Values.global.config.maxQueryTimeout | default "120" | quote }}

8 changes: 4 additions & 4 deletions deploy/helm/templates/node-service/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
PUID: {{ .Values.nodeService.config.userId | default "9001" | quote }}
PGID: {{ .Values.nodeService.config.groupId | default "9001" | quote }}
{{- if .Values.nodeService.apiServiceUrl }}
LOWCODER_API_SERVICE_URL: {{ .Values.nodeService.apiServiceUrl | quote }}
PUID: {{ .Values.global.config.userId | default "9001" | quote }}
PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
{{- if .Values.global.config.apiServiceUrl }}
LOWCODER_API_SERVICE_URL: {{ .Values.global.config.apiServiceUrl | quote }}
{{- else }}
LOWCODER_API_SERVICE_URL: "http://{{ $name }}-api-service:{{ .Values.apiService.service.port }}"
{{- end }}
44 changes: 25 additions & 19 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

#
# Configuration values for Lowcoder
#
global:
config:
# ID of user and group runnning the service within the container
userId: 9001
groupId: 9001
corsAllowedDomains: "*"
enableUserSignUp: true
encryption:
password: "lowcoder.org"
salt: "lowcoder.org"
#nodeServiceUrl:
#apiServiceUrl:
apiKeySecret: "5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
maxQueryTimeout: 120
maxRequestSize: "20m"
defaults:
maxOrgsPerUser: 100
maxMembersPerOrg: 1000
maxGroupsPerOrg: 100
maxAppsPerOrg: 1000
maxDevelopers: 50

#
# Redis
#
Expand Down Expand Up @@ -59,15 +84,6 @@ apiService:
# Overrides the image tag whose default is the chart appVersion.
#tag: "latest"

config:
userId: 9001
groupId: 9001
corsAllowedDomains: "*"
enableUserSignUp: true
encryption:
password: "lowcoder.org"
salt: "lowcoder.org"
#nodeServiceUrl:

service:
type: ClusterIP
Expand All @@ -93,10 +109,6 @@ nodeService:
# Overrides the image tag whose default is the chart appVersion.
#tag: "latest"

config:
userId: 9001
groupId: 9001
#apiServiceUrl:

service:
type: ClusterIP
Expand All @@ -119,12 +131,6 @@ frontend:
# Overrides the image tag whose default is the chart appVersion.
#tag: "latest"

config:
userId: 9001
groupId: 9001
#apiServiceUrl:
#nodeServiceUrl:

service:
type: NodePort
port: 80
Expand Down