mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-22 08:46:34 +00:00
commit
2da3bd42b4
@ -1,5 +1,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: "v2.26.1"
|
appVersion: "v2.27.0"
|
||||||
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.26.1
|
version: 2.27.0
|
||||||
|
@ -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.26.1 ` |
|
| `global.imageTag` | 版本号 | `v2.27.0 ` |
|
||||||
| `global.imagePullSecrets` | 私有仓库认证凭据 | `nil` |
|
| `global.imagePullSecrets` | 私有仓库认证凭据 | `nil` |
|
||||||
| `global.storageClass` | 存储 sc | `nil` |
|
| `global.storageClass` | 存储 sc | `nil` |
|
||||||
| `ingress.enabled` | 开启 ingress | `true` |
|
| `ingress.enabled` | 开启 ingress | `true` |
|
||||||
@ -45,6 +45,7 @@ helm repo add jumpserver https://jumpserver.github.io/helm-charts
|
|||||||
|
|
||||||
| 参数 | 描述 | 默认值 |
|
| 参数 | 描述 | 默认值 |
|
||||||
| ------------------------------ | ---------------------------------------------| ---------------------- |
|
| ------------------------------ | ---------------------------------------------| ---------------------- |
|
||||||
|
| `global.storageClass` | 持久化存储 | `nil` |
|
||||||
| `core.config.secretKey` | 加密秘钥 生产环境中请修改为随机字符串,请勿外泄 | `nil` |
|
| `core.config.secretKey` | 加密秘钥 生产环境中请修改为随机字符串,请勿外泄 | `nil` |
|
||||||
| `core.config.bootstrapToken` | 预共享 Token 组件注册需要使用 | `nil` |
|
| `core.config.bootstrapToken` | 预共享 Token 组件注册需要使用 | `nil` |
|
||||||
| `externalDatabase.engine` | 数据库引擎 | `mysql` |
|
| `externalDatabase.engine` | 数据库引擎 | `mysql` |
|
||||||
@ -83,7 +84,7 @@ helm install jumpserver ./ \
|
|||||||
helm install jms-k8s jumpserver/jumpserver -n default \
|
helm install jms-k8s jumpserver/jumpserver -n default \
|
||||||
--set core.config.secretKey=GxrLH7rewfsRN8B9Zl6MEGD50Uou4LF6UVsEIayGMhYll8dqmn \
|
--set core.config.secretKey=GxrLH7rewfsRN8B9Zl6MEGD50Uou4LF6UVsEIayGMhYll8dqmn \
|
||||||
--set core.config.bootstrapToken=ilR8RvAbK7lgRTxs \
|
--set core.config.bootstrapToken=ilR8RvAbK7lgRTxs \
|
||||||
--set global.storageClass=nfs \
|
--set global.storageClass=jms-data \
|
||||||
--set externalDatabase.engine=mysql \
|
--set externalDatabase.engine=mysql \
|
||||||
--set externalDatabase.host=jms-mysql \
|
--set externalDatabase.host=jms-mysql \
|
||||||
--set externalDatabase.port=3306 \
|
--set externalDatabase.port=3306 \
|
||||||
|
@ -56,7 +56,7 @@ Create the name of the service account to use
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Define JumpServer database
|
Define JumpServer database.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- define "jumpserver.mysql.fullname" -}}
|
{{- define "jumpserver.mysql.fullname" -}}
|
||||||
@ -89,7 +89,7 @@ Define JumpServer database
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Define JumpServer redis
|
Define JumpServer redis.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- define "jumpserver.redis.fullname" -}}
|
{{- define "jumpserver.redis.fullname" -}}
|
||||||
@ -110,7 +110,7 @@ Define JumpServer redis
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Define JumpServer StorageClass
|
Define JumpServer StorageClass.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- define "jumpserver.core.storageClass" -}}
|
{{- define "jumpserver.core.storageClass" -}}
|
||||||
@ -165,6 +165,30 @@ Define JumpServer StorageClass
|
|||||||
{{- if .Values.global.storageClass }}
|
{{- if .Values.global.storageClass }}
|
||||||
{{- .Values.global.storageClass }}
|
{{- .Values.global.storageClass }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Values.razor.persistence.storageClassName -}}
|
{{- .Values.web.persistence.storageClassName -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Define JumpServer magnus ports.
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- define "jumpserver.magnus.ports" -}}
|
||||||
|
{{- default "30000-30100" .Values.magnus.service.ports -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "jumpserver.magnus.port.start" -}}
|
||||||
|
{{- if .Values.magnus.service.ports }}
|
||||||
|
{{- .Values.magnus.service.ports | splitList "-" | first }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- default 30000 -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "jumpserver.magnus.port.end" -}}
|
||||||
|
{{- if .Values.magnus.service.ports }}
|
||||||
|
{{- add (.Values.magnus.service.ports | splitList "-" | last) 1 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- default 30101 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-celery" }}
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-celery" }}
|
||||||
{{- $containerName := "jms-celery" }}
|
{{- $containerName := "jms-celery" }}
|
||||||
{{- $image := printf "%s" (include "jumpserver.coreImage" $) }}
|
{{- $image := printf "%s" (include "jumpserver.coreImage" $) }}
|
||||||
|
{{- $magnusPorts := printf "%s" (include "jumpserver.magnus.ports" $) }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -72,6 +73,8 @@ 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 }}
|
||||||
|
- name: MAGNUS_PORTS
|
||||||
|
value: {{ $magnusPorts | quote }}
|
||||||
{{- range $key, $val := .env }}
|
{{- range $key, $val := .env }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
value: {{ $val | quote }}
|
value: {{ $val | quote }}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-core" }}
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-core" }}
|
||||||
{{- $containerName := "jms-core" }}
|
{{- $containerName := "jms-core" }}
|
||||||
{{- $image := printf "%s" (include "jumpserver.coreImage" $) }}
|
{{- $image := printf "%s" (include "jumpserver.coreImage" $) }}
|
||||||
|
{{- $magnusPorts := printf "%s" (include "jumpserver.magnus.ports" $) }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -73,6 +74,8 @@ 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 }}
|
||||||
|
- name: MAGNUS_PORTS
|
||||||
|
value: {{ $magnusPorts | quote }}
|
||||||
{{- range $key, $val := .env }}
|
{{- range $key, $val := .env }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
value: {{ $val | quote }}
|
value: {{ $val | quote }}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-magnus" }}
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-magnus" }}
|
||||||
{{- $containerName := "jms-magnus" }}
|
{{- $containerName := "jms-magnus" }}
|
||||||
{{- $image := printf "%s" (include "jumpserver.magnusImage" $) }}
|
{{- $image := printf "%s" (include "jumpserver.magnusImage" $) }}
|
||||||
|
{{- $magnusPortStart := printf "%s" (include "jumpserver.magnus.port.start" $) | int }}
|
||||||
|
{{- $magnusPortEnd := printf "%s" (include "jumpserver.magnus.port.end" $) | int }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -53,30 +55,27 @@ spec:
|
|||||||
value: {{ $val | quote }}
|
value: {{ $val | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: mysql
|
{{- range $port := untilStep $magnusPortStart $magnusPortEnd 1 }}
|
||||||
containerPort: {{ .service.mysql.port }}
|
- name: magnus-{{ $port }}
|
||||||
protocol: TCP
|
containerPort: {{ $port }}
|
||||||
- name: mariadb
|
|
||||||
containerPort: {{ .service.mariadb.port }}
|
|
||||||
protocol: TCP
|
|
||||||
- name: redis
|
|
||||||
containerPort: {{ .service.redis.port }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- if $.Values.xpack.enabled }}
|
|
||||||
- name: postgre
|
|
||||||
containerPort: {{ .service.postgre.port }}
|
|
||||||
protocol: TCP
|
|
||||||
- name: oracle11g
|
|
||||||
containerPort: {{ .service.oracle11g.port }}
|
|
||||||
protocol: TCP
|
|
||||||
- name: oracle12c
|
|
||||||
containerPort: {{ .service.oracle12c.port }}
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .livenessProbe | nindent 12}}
|
{{- if .livenessProbe }}
|
||||||
|
{{- toYaml .livenessProbe | nindent 12 }}
|
||||||
|
{{- else }}
|
||||||
|
failureThreshold: 30
|
||||||
|
tcpSocket:
|
||||||
|
port: magnus-{{ template "jumpserver.magnus.port.start" }}
|
||||||
|
{{- end }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
{{- toYaml .readinessProbe | nindent 12}}
|
{{- if .readinessProbe }}
|
||||||
|
{{- toYaml .readinessProbe | nindent 12 }}
|
||||||
|
{{- else }}
|
||||||
|
failureThreshold: 30
|
||||||
|
tcpSocket:
|
||||||
|
port: magnus-{{ template "jumpserver.magnus.port.start" }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .resources | nindent 12 }}
|
{{- toYaml .resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{{- if .Values.magnus.enabled }}
|
{{- if .Values.magnus.enabled }}
|
||||||
{{- with .Values.magnus }}
|
{{- with .Values.magnus }}
|
||||||
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-magnus" }}
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-magnus" }}
|
||||||
|
{{- $magnusPortStart := printf "%s" (include "jumpserver.magnus.port.start" $) | int }}
|
||||||
|
{{- $magnusPortEnd := printf "%s" (include "jumpserver.magnus.port.end" $) | int}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@ -13,31 +15,11 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: {{ .service.type }}
|
type: {{ .service.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .service.mysql.port }}
|
{{- range $port := untilStep $magnusPortStart $magnusPortEnd 1 }}
|
||||||
targetPort: mysql
|
- port: {{ $port }}
|
||||||
|
targetPort: magnus-{{ $port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: mysql
|
name: magnus-{{ $port }}
|
||||||
- port: {{ .service.mariadb.port }}
|
|
||||||
targetPort: mariadb
|
|
||||||
protocol: TCP
|
|
||||||
name: mariadb
|
|
||||||
- port: {{ .service.redis.port }}
|
|
||||||
targetPort: redis
|
|
||||||
protocol: TCP
|
|
||||||
name: redis
|
|
||||||
{{- if $.Values.xpack.enabled }}
|
|
||||||
- port: {{ .service.postgre.port }}
|
|
||||||
targetPort: postgre
|
|
||||||
protocol: TCP
|
|
||||||
name: postgre
|
|
||||||
- port: {{ .service.oracle11g.port }}
|
|
||||||
targetPort: oracle11g
|
|
||||||
protocol: TCP
|
|
||||||
name: oracle11g
|
|
||||||
- port: {{ .service.oracle12c.port }}
|
|
||||||
targetPort: oracle12c
|
|
||||||
protocol: TCP
|
|
||||||
name: oracle12c
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
sessionAffinity: ClientIP
|
sessionAffinity: ClientIP
|
||||||
sessionAffinityConfig:
|
sessionAffinityConfig:
|
||||||
|
@ -12,7 +12,7 @@ fullnameOverride: ""
|
|||||||
##
|
##
|
||||||
global:
|
global:
|
||||||
imageRegistry: "docker.io"
|
imageRegistry: "docker.io"
|
||||||
imageTag: v2.26.1
|
imageTag: v2.27.0
|
||||||
## E.g.
|
## E.g.
|
||||||
# imagePullSecrets:
|
# imagePullSecrets:
|
||||||
# - myRegistryKeySecretName
|
# - myRegistryKeySecretName
|
||||||
@ -85,7 +85,7 @@ core:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/core
|
repository: jumpserver/core
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -174,7 +174,7 @@ koko:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/koko
|
repository: jumpserver/koko
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -265,7 +265,7 @@ lion:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/lion
|
repository: jumpserver/lion
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -356,22 +356,22 @@ magnus:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/magnus
|
repository: jumpserver/magnus
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
|
|
||||||
env: []
|
env: []
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe: {}
|
||||||
failureThreshold: 30
|
# failureThreshold: 30
|
||||||
tcpSocket:
|
# tcpSocket:
|
||||||
port: mysql
|
# port: 30000
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe: {}
|
||||||
failureThreshold: 30
|
# failureThreshold: 30
|
||||||
tcpSocket:
|
# tcpSocket:
|
||||||
port: mysql
|
# port: 30000
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
@ -386,18 +386,7 @@ magnus:
|
|||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
mysql:
|
ports: 30000-30100
|
||||||
port: 33060
|
|
||||||
mariadb:
|
|
||||||
port: 33061
|
|
||||||
redis:
|
|
||||||
port: 63790
|
|
||||||
postgre:
|
|
||||||
port: 54320
|
|
||||||
oracle11g:
|
|
||||||
port: 15211
|
|
||||||
oracle12c:
|
|
||||||
port: 15212
|
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
@ -448,7 +437,7 @@ omnidb:
|
|||||||
image:
|
image:
|
||||||
registry: registry.fit2cloud.com
|
registry: registry.fit2cloud.com
|
||||||
repository: jumpserver/omnidb
|
repository: jumpserver/omnidb
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -527,7 +516,7 @@ razor:
|
|||||||
image:
|
image:
|
||||||
registry: registry.fit2cloud.com
|
registry: registry.fit2cloud.com
|
||||||
repository: jumpserver/razor
|
repository: jumpserver/razor
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -604,7 +593,7 @@ web:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/web
|
repository: jumpserver/web
|
||||||
tag: v2.26.1
|
tag: v2.27.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
|
Loading…
Reference in New Issue
Block a user