Merge pull request #69 from wojiushixiaobai/main

perf: 优化 values
This commit is contained in:
吴小白 2022-04-13 19:27:43 +08:00 committed by GitHub
commit c052f7bee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 77 additions and 49 deletions

View File

@ -1,5 +1,5 @@
apiVersion: v1 apiVersion: v1
appVersion: "v2.20.2" appVersion: "v2.20.3"
description: A Helm chart for Deploying Jumpserver on Kubernetes description: A Helm chart for Deploying Jumpserver on Kubernetes
engine: gotpl engine: gotpl
home: https://jumpserver.org home: https://jumpserver.org
@ -10,4 +10,4 @@ maintainers:
sources: sources:
- https://github.com/jumpserver/ - https://github.com/jumpserver/
name: jumpserver name: jumpserver
version: 2.20.2 version: 2.20.3

View File

@ -30,7 +30,7 @@ helm repo add jumpserver https://jumpserver.github.io/helm-charts
| `nameOveride` | name override | `nil` | | `nameOveride` | name override | `nil` |
| `fullNameOveride` | full name override | `nil` | | `fullNameOveride` | full name override | `nil` |
| `global.imageRegistry` | 仓库地址 | `docker.io` | | `global.imageRegistry` | 仓库地址 | `docker.io` |
| `global.imageTag` | 版本号 | `v2.20.2 ` | | `global.imageTag` | 版本号 | `v2.20.3 ` |
| `global.imagePullSecrets` | 私有仓库认证凭据 | `nil` | `global.imagePullSecrets` | 私有仓库认证凭据 | `nil`
| `global.storageClass` | 存储 sc | `nil` | | `global.storageClass` | 存储 sc | `nil` |
| `ingress.enabled` | 开启 ingress | `true` | | `ingress.enabled` | 开启 ingress | `true` |

View File

@ -50,8 +50,6 @@ spec:
value: {{ .config.debug | quote }} value: {{ .config.debug | quote }}
- name: LOG_LEVEL - name: LOG_LEVEL
value: {{ .config.log.level | quote }} value: {{ .config.log.level | quote }}
- name: SESSION_EXPIRE_AT_BROWSER_CLOSE
value: "true"
- name: HTTP_LISTEN_PORT - name: HTTP_LISTEN_PORT
value: {{ .service.web.port | quote }} value: {{ .service.web.port | quote }}
- name: WS_LISTEN_PORT - name: WS_LISTEN_PORT
@ -74,9 +72,10 @@ spec:
value: {{ include "jumpserver.redis.port" $ | quote }} value: {{ include "jumpserver.redis.port" $ | quote }}
- name: REDIS_PASSWORD - name: REDIS_PASSWORD
value: {{ include "jumpserver.redis.password" $ | quote }} value: {{ include "jumpserver.redis.password" $ | quote }}
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
livenessProbe: livenessProbe:
exec: exec:
command: command:

View File

@ -51,8 +51,6 @@ spec:
value: {{ .config.debug | quote }} value: {{ .config.debug | quote }}
- name: LOG_LEVEL - name: LOG_LEVEL
value: {{ .config.log.level | quote }} value: {{ .config.log.level | quote }}
- name: SESSION_EXPIRE_AT_BROWSER_CLOSE
value: "true"
- name: HTTP_LISTEN_PORT - name: HTTP_LISTEN_PORT
value: {{ .service.web.port | quote }} value: {{ .service.web.port | quote }}
- name: WS_LISTEN_PORT - name: WS_LISTEN_PORT
@ -75,9 +73,10 @@ spec:
value: {{ include "jumpserver.redis.port" $ | quote }} value: {{ include "jumpserver.redis.port" $ | quote }}
- name: REDIS_PASSWORD - name: REDIS_PASSWORD
value: {{ include "jumpserver.redis.password" $ | quote }} value: {{ include "jumpserver.redis.password" $ | quote }}
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
ports: ports:
- name: web - name: web
containerPort: {{ .service.web.port }} containerPort: {{ .service.web.port }}

View File

@ -69,9 +69,10 @@ spec:
value: {{ include "jumpserver.redis.port" $ | quote }} value: {{ include "jumpserver.redis.port" $ | quote }}
- name: REDIS_PASSWORD - name: REDIS_PASSWORD
value: {{ include "jumpserver.redis.password" $ | quote }} value: {{ include "jumpserver.redis.password" $ | quote }}
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
livenessProbe: livenessProbe:
{{- toYaml .livenessProbe | nindent 12 }} {{- toYaml .livenessProbe | nindent 12 }}
readinessProbe: readinessProbe:

View File

@ -54,10 +54,6 @@ spec:
value: {{ .config.log.level | quote }} value: {{ .config.log.level | quote }}
- name: HTTPD_PORT - name: HTTPD_PORT
value: {{ .service.web.port | quote }} value: {{ .service.web.port | quote }}
- name: JUMPSERVER_ENABLE_FONT_SMOOTHING
value: "true"
- name: JUMPSERVER_COLOR_DEPTH
value: "32"
- name: SHARE_ROOM_TYPE - name: SHARE_ROOM_TYPE
value: "redis" value: "redis"
- name: REDIS_HOST - name: REDIS_HOST
@ -66,9 +62,10 @@ spec:
value: {{ include "jumpserver.redis.port" $ | quote }} value: {{ include "jumpserver.redis.port" $ | quote }}
- name: REDIS_PASSWORD - name: REDIS_PASSWORD
value: {{ include "jumpserver.redis.password" $ | quote }} value: {{ include "jumpserver.redis.password" $ | quote }}
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
livenessProbe: livenessProbe:
{{- toYaml .livenessProbe | nindent 12 }} {{- toYaml .livenessProbe | nindent 12 }}
readinessProbe: readinessProbe:

View File

@ -50,9 +50,10 @@ spec:
value: {{ .config.log.level | quote }} value: {{ .config.log.level | quote }}
- name: listening_port - name: listening_port
value: {{ .service.web.port | quote }} value: {{ .service.web.port | quote }}
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
ports: ports:
- name: web - name: web
containerPort: {{ .service.web.port }} containerPort: {{ .service.web.port }}

View File

@ -59,8 +59,9 @@ spec:
value: {{ include "jumpserver.redis.port" $ | quote }} value: {{ include "jumpserver.redis.port" $ | quote }}
- name: REDIS_PASSWORD - name: REDIS_PASSWORD
value: {{ include "jumpserver.redis.password" $ | quote }} value: {{ include "jumpserver.redis.password" $ | quote }}
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
restartPolicy: Never restartPolicy: Never
{{- end }} {{- end }}

View File

@ -41,10 +41,11 @@ spec:
command: command:
{{- tpl (toYaml .) $ | nindent 12 }} {{- tpl (toYaml .) $ | nindent 12 }}
{{- end }} {{- end }}
{{- with .env }}
env: env:
{{- tpl (toYaml .) $ | nindent 12 | quote }} {{- range $key, $val := .env }}
{{- end }} - name: {{ $key }}
value: {{ $val | quote }}
{{- end }}
ports: ports:
- name: web - name: web
containerPort: {{ .service.web.port }} containerPort: {{ .service.web.port }}

View File

@ -50,9 +50,10 @@ spec:
value: {{ .config.log.level | quote }} value: {{ .config.log.level | quote }}
- name: JUMPSERVER_ENABLE_FONT_SMOOTHING - name: JUMPSERVER_ENABLE_FONT_SMOOTHING
value: "true" value: "true"
{{- with .env }} {{- range $key, $val := .env }}
{{- tpl (toYaml .) $ | nindent 12 | quote }} - name: {{ $key }}
{{- end }} value: {{ $val | quote }}
{{- end }}
ports: ports:
- name: rdp - name: rdp
containerPort: {{ .service.rdp.port }} containerPort: {{ .service.rdp.port }}

View File

@ -12,7 +12,7 @@ fullnameOverride: ""
## ##
global: global:
imageRegistry: "docker.io" imageRegistry: "docker.io"
imageTag: v2.20.2 imageTag: v2.20.3
## E.g. ## E.g.
# imagePullSecrets: # imagePullSecrets:
# - myRegistryKeySecretName # - myRegistryKeySecretName
@ -20,8 +20,8 @@ global:
imagePullSecrets: [] imagePullSecrets: []
storageClass: "" storageClass: ""
## If the MySQL database included in the chart is disabled, JumpServer will ## Please configure your MySQL server first
## use below parameters to connect to an external MySQL server. ## Jumpserver will not start the external MySQL server.
## ##
externalDatabase: externalDatabase:
engine: mysql engine: mysql
@ -31,8 +31,8 @@ externalDatabase:
password: "" password: ""
database: jumpserver database: jumpserver
## If the Redis database included in the chart is disabled, JumpServer will ## Please configure your Redis server first
## use below parameters to connect to an external Redis server. ## Jumpserver will not start the external Redis server.
## ##
externalRedis: externalRedis:
host: localhost host: localhost
@ -85,12 +85,16 @@ core:
image: image:
registry: docker.io registry: docker.io
repository: jumpserver/core repository: jumpserver/core
tag: v2.20.2 tag: v2.20.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: [] command: []
env: [] env:
# See: https://docs.jumpserver.org/zh/master/admin-guide/env/#core
SESSION_EXPIRE_AT_BROWSER_CLOSE: true
# SESSION_COOKIE_AGE: 86400
# SECURITY_VIEW_AUTH_NEED_MFA: true
livenessProbe: livenessProbe:
failureThreshold: 30 failureThreshold: 30
@ -170,12 +174,17 @@ koko:
image: image:
registry: docker.io registry: docker.io
repository: jumpserver/koko repository: jumpserver/koko
tag: v2.20.2 tag: v2.20.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: [] command: []
env: [] env: []
# See: https://docs.jumpserver.org/zh/master/admin-guide/env/#koko
# LANGUAGE_CODE: zh
# REUSE_CONNECTION: true
# ENABLE_LOCAL_PORT_FORWARD: true
# ENABLE_VSCODE_SUPPORT: true
livenessProbe: livenessProbe:
failureThreshold: 30 failureThreshold: 30
@ -254,12 +263,20 @@ lion:
image: image:
registry: docker.io registry: docker.io
repository: jumpserver/lion repository: jumpserver/lion
tag: v2.20.2 tag: v2.20.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: [] command: []
env: [] env:
# See: https://docs.jumpserver.org/zh/master/admin-guide/env/#lion
JUMPSERVER_ENABLE_FONT_SMOOTHING: true
# JUMPSERVER_COLOR_DEPTH: 32
# JUMPSERVER_ENABLE_WALLPAPER: true
# JUMPSERVER_ENABLE_THEMING: true
# JUMPSERVER_ENABLE_FULL_WINDOW_DRAG: true
# JUMPSERVER_ENABLE_DESKTOP_COMPOSITION: true
# JUMPSERVER_ENABLE_MENU_ANIMATIONS: true
livenessProbe: livenessProbe:
failureThreshold: 30 failureThreshold: 30
@ -336,7 +353,7 @@ omnidb:
image: image:
registry: registry.fit2cloud.com registry: registry.fit2cloud.com
repository: jumpserver/omnidb repository: jumpserver/omnidb
tag: v2.20.2 tag: v2.20.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: [] command: []
@ -413,12 +430,21 @@ xrdp:
image: image:
registry: registry.fit2cloud.com registry: registry.fit2cloud.com
repository: jumpserver/xrdp repository: jumpserver/xrdp
tag: v2.20.2 tag: v2.20.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: [] command: []
env: [] env:
# tcp_send_buffer_bytes and tcp_recv_buffer_bytes See: https://github.com/neutrinolabs/xrdp/issues/1483
TCP_SEND_BUFFER_BYTES: 4194304
TCP_RECV_BUFFER_BYTES: 6291456
JUMPSERVER_ENABLE_FONT_SMOOTHING: true
# JUMPSERVER_ENABLE_WALLPAPER: true
# JUMPSERVER_ENABLE_THEMING: true
# JUMPSERVER_ENABLE_FULL_WINDOW_DRAG: true
# JUMPSERVER_ENABLE_DESKTOP_COMPOSITION: true
# JUMPSERVER_ENABLE_MENU_ANIMATIONS: true
livenessProbe: livenessProbe:
failureThreshold: 30 failureThreshold: 30
@ -488,12 +514,14 @@ web:
image: image:
registry: docker.io registry: docker.io
repository: jumpserver/web repository: jumpserver/web
tag: v2.20.2 tag: v2.20.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: [] command: []
env: [] env: []
# nginx client_max_body_size, default 4G
# CLIENT_MAX_BODY_SIZE: 4096m
livenessProbe: livenessProbe:
failureThreshold: 30 failureThreshold: 30