安装文档

    外置环境要求

    • 推荐使用外置 数据库 和 Redis,方便日后扩展升级

    可以使用由 华为云 提供的容器镜像服务

    一键部署

    1. cd /opt/jumpserver-installer-v2.23.2
    2. # 启动
    3. ./jmsctl.sh start
    4. # 停止
    5. ./jmsctl.sh down
    6. # 卸载
    7. ./jmsctl.sh uninstall
    8. # 帮助
    9. ./jmsctl.sh -h
    1. cd /opt
    2. wget https://github.com/jumpserver/installer/releases/download/v2.23.2/jumpserver-installer-v2.23.2.tar.gz
    3. tar -xf jumpserver-installer-v2.23.2.tar.gz
    4. cd jumpserver-installer-v2.23.2
    1. # 根据需要修改配置文件模板, 如果不清楚用途可以跳过修改
    2. cat config-example.txt
    1. # 以下设置如果为空系统会自动生成随机字符串填入
    2. ## 迁移请修改 SECRET_KEY 和 BOOTSTRAP_TOKEN 为原来的设置
    3. ## 完整参数文档 https://docs.jumpserver.org/zh/master/admin-guide/env/
    4. ## 安装配置, amd64 默认使用华为云加速下载, arm64 请注释掉 DOCKER_IMAGE_PREFIX=swr.cn-south-1.myhuaweicloud.com
    5. # DOCKER_IMAGE_PREFIX=swr.cn-south-1.myhuaweicloud.com
    6. VOLUME_DIR=/opt/jumpserver
    7. DOCKER_DIR=/var/lib/docker
    8. SECRET_KEY=
    9. BOOTSTRAP_TOKEN=
    10. LOG_LEVEL=ERROR
    11. ## MySQL 配置, USE_EXTERNAL_MYSQL=1 表示使用外置数据库, 请输入正确的 MySQL 信息
    12. USE_EXTERNAL_MYSQL=0
    13. DB_HOST=mysql
    14. DB_PORT=3306
    15. DB_USER=root
    16. DB_PASSWORD=
    17. DB_NAME=jumpserver
    18. ## Redis 配置, USE_EXTERNAL_REDIS=1 表示使用外置数据库, 请输入正确的 Redis 信息
    19. USE_EXTERNAL_REDIS=0
    20. REDIS_HOST=redis
    21. REDIS_PORT=6379
    22. REDIS_PASSWORD=
    23. ## Compose 项目设置, 如果 192.168.250.0/24 网段与你现有网段冲突, 请修改然后重启 JumpServer
    24. COMPOSE_PROJECT_NAME=jms
    25. COMPOSE_HTTP_TIMEOUT=3600
    26. DOCKER_CLIENT_TIMEOUT=3600
    27. DOCKER_SUBNET=192.168.250.0/24
    28. ## IPV6 设置, 容器是否开启 ipv6 nat, USE_IPV6=1 表示开启, 为 0 的情况下 DOCKER_SUBNET_IPV6 定义不生效
    29. USE_IPV6=0
    30. DOCKER_SUBNET_IPV6=fc00:1010:1111:200::/64
    31. ## 访问配置
    32. HTTP_PORT=80
    33. SSH_PORT=2222
    34. MAGNUS_MYSQL_PORT=33060
    35. MAGNUS_MARIADB_PORT=33061
    36. ## HTTPS 配置, 参考 https://docs.jumpserver.org/zh/master/admin-guide/proxy/ 配置
    37. # USE_LB=1
    38. # HTTPS_PORT=443
    39. # SERVER_NAME=your_domain_name
    40. # SSL_CERTIFICATE=your_cert
    41. # SSL_CERTIFICATE_KEY=your_cert_key
    42. ## Nginx 文件上传大小
    43. CLIENT_MAX_BODY_SIZE=4096m
    44. ## Task 配置, 是否启动 jms_celery 容器, 单节点必须开启
    45. USE_TASK=1
    46. ## XPack, USE_XPACK=1 表示开启, 开源版本设置无效
    47. USE_XPACK=0
    48. RDP_PORT=3389
    49. MAGNUS_POSTGRE_PORT=54320
    50. TCP_SEND_BUFFER_BYTES=4194304
    51. TCP_RECV_BUFFER_BYTES=6291456
    52. # Core 配置, Session 定义, SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期, SESSION_EXPIRE_AT_BROWSER_CLOSE=True 表示关闭浏览器即 session 过期
    53. # SESSION_COOKIE_AGE=86400
    54. SESSION_EXPIRE_AT_BROWSER_CLOSE=True
    55. # Koko Lion XRDP 组件配置
    56. CORE_HOST=http://core:8080
    57. JUMPSERVER_ENABLE_FONT_SMOOTHING=True
    58. ## 终端使用宿主 HOSTNAME 标识
    59. SERVER_HOSTNAME=${HOSTNAME}
    60. # 额外的配置
    61. CURRENT_VERSION=
    1. # 安装
    2. ./jmsctl.sh install
    3. # 启动
    4. ./jmsctl.sh start
    1. # 安装完成后配置文件 /opt/jumpserver/config/config.txt

    离线部署(amd64)

    从飞致云社区 , 并上传到部署服务器的 /opt 目录

    1. cd /opt
    2. tar -xf jumpserver-offline-installer-v2.23.2-amd64-26.tar.gz
    3. cd jumpserver-offline-installer-v2.23.2-amd64-26
    1. # 根据需要修改配置文件模板, 如果不清楚用途可以跳过修改
    2. cat config-example.txt
    1. # 以下设置如果为空系统会自动生成随机字符串填入
    2. ## 迁移请修改 SECRET_KEY 和 BOOTSTRAP_TOKEN 为原来的设置
    3. ## 完整参数文档 https://docs.jumpserver.org/zh/master/admin-guide/env/
    4. ## 安装配置, amd64 默认使用华为云加速下载, arm64 请注释掉 DOCKER_IMAGE_PREFIX=swr.cn-south-1.myhuaweicloud.com
    5. # DOCKER_IMAGE_PREFIX=swr.cn-south-1.myhuaweicloud.com
    6. VOLUME_DIR=/opt/jumpserver
    7. DOCKER_DIR=/var/lib/docker
    8. SECRET_KEY=
    9. BOOTSTRAP_TOKEN=
    10. LOG_LEVEL=ERROR
    11. ## MySQL 配置, USE_EXTERNAL_MYSQL=1 表示使用外置数据库, 请输入正确的 MySQL 信息
    12. USE_EXTERNAL_MYSQL=0
    13. DB_HOST=mysql
    14. DB_PORT=3306
    15. DB_USER=root
    16. DB_PASSWORD=
    17. DB_NAME=jumpserver
    18. ## Redis 配置, USE_EXTERNAL_REDIS=1 表示使用外置数据库, 请输入正确的 Redis 信息
    19. USE_EXTERNAL_REDIS=0
    20. REDIS_HOST=redis
    21. REDIS_PORT=6379
    22. REDIS_PASSWORD=
    23. ## Compose 项目设置, 如果 192.168.250.0/24 网段与你现有网段冲突, 请修改然后重启 JumpServer
    24. COMPOSE_PROJECT_NAME=jms
    25. COMPOSE_HTTP_TIMEOUT=3600
    26. DOCKER_CLIENT_TIMEOUT=3600
    27. DOCKER_SUBNET=192.168.250.0/24
    28. ## IPV6 设置, 容器是否开启 ipv6 nat, USE_IPV6=1 表示开启, 为 0 的情况下 DOCKER_SUBNET_IPV6 定义不生效
    29. USE_IPV6=0
    30. DOCKER_SUBNET_IPV6=fc00:1010:1111:200::/64
    31. ## 访问配置
    32. HTTP_PORT=80
    33. SSH_PORT=2222
    34. MAGNUS_MYSQL_PORT=33060
    35. MAGNUS_MARIADB_PORT=33061
    36. ## HTTPS 配置, 参考 https://docs.jumpserver.org/zh/master/admin-guide/proxy/ 配置
    37. # USE_LB=1
    38. # HTTPS_PORT=443
    39. # SERVER_NAME=your_domain_name
    40. # SSL_CERTIFICATE=your_cert
    41. # SSL_CERTIFICATE_KEY=your_cert_key
    42. ## Nginx 文件上传大小
    43. CLIENT_MAX_BODY_SIZE=4096m
    44. ## Task 配置, 是否启动 jms_celery 容器, 单节点必须开启
    45. USE_TASK=1
    46. ## XPack, USE_XPACK=1 表示开启, 开源版本设置无效
    47. USE_XPACK=0
    48. RDP_PORT=3389
    49. MAGNUS_POSTGRE_PORT=54320
    50. TCP_SEND_BUFFER_BYTES=4194304
    51. TCP_RECV_BUFFER_BYTES=6291456
    52. # Core 配置, Session 定义, SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期, SESSION_EXPIRE_AT_BROWSER_CLOSE=True 表示关闭浏览器即 session 过期
    53. # SESSION_COOKIE_AGE=86400
    54. SESSION_EXPIRE_AT_BROWSER_CLOSE=True
    55. # Koko Lion XRDP 组件配置
    56. CORE_HOST=http://core:8080
    57. JUMPSERVER_ENABLE_FONT_SMOOTHING=True
    58. ## 终端使用宿主 HOSTNAME 标识
    59. SERVER_HOSTNAME=${HOSTNAME}
    60. # 额外的配置
    61. CURRENT_VERSION=
    1. # 安装
    2. ./jmsctl.sh install
    3. # 启动
    4. ./jmsctl.sh start
    1. # 安装完成后配置文件 /opt/jumpserver/config/config.txt
    1. cd /opt/jumpserver-installer-v2.23.2
    2. # 启动
    3. ./jmsctl.sh start
    4. # 停止
    5. ./jmsctl.sh down
    6. # 卸载
    7. ./jmsctl.sh uninstall
    8. # 帮助
    9. ./jmsctl.sh -h

    离线部署(arm64)

    1. cd /opt
    2. tar -xf jumpserver-offline-installer-v2.23.2-arm64-26.tar.gz
    3. cd jumpserver-offline-installer-v2.23.2-arm64-26
    1. # 以下设置如果为空系统会自动生成随机字符串填入
    2. ## 迁移请修改 SECRET_KEY 和 BOOTSTRAP_TOKEN 为原来的设置
    3. ## 完整参数文档 https://docs.jumpserver.org/zh/master/admin-guide/env/
    4. ## 安装配置, amd64 默认使用华为云加速下载, arm64 请注释掉 DOCKER_IMAGE_PREFIX=swr.cn-south-1.myhuaweicloud.com
    5. # DOCKER_IMAGE_PREFIX=swr.cn-south-1.myhuaweicloud.com
    6. VOLUME_DIR=/opt/jumpserver
    7. DOCKER_DIR=/var/lib/docker
    8. SECRET_KEY=
    9. BOOTSTRAP_TOKEN=
    10. LOG_LEVEL=ERROR
    11. ## MySQL 配置, USE_EXTERNAL_MYSQL=1 表示使用外置数据库, 请输入正确的 MySQL 信息
    12. USE_EXTERNAL_MYSQL=0
    13. DB_HOST=mysql
    14. DB_PORT=3306
    15. DB_USER=root
    16. DB_PASSWORD=
    17. DB_NAME=jumpserver
    18. ## Redis 配置, USE_EXTERNAL_REDIS=1 表示使用外置数据库, 请输入正确的 Redis 信息
    19. USE_EXTERNAL_REDIS=0
    20. REDIS_HOST=redis
    21. REDIS_PORT=6379
    22. REDIS_PASSWORD=
    23. ## Compose 项目设置, 如果 192.168.250.0/24 网段与你现有网段冲突, 请修改然后重启 JumpServer
    24. COMPOSE_PROJECT_NAME=jms
    25. COMPOSE_HTTP_TIMEOUT=3600
    26. DOCKER_CLIENT_TIMEOUT=3600
    27. DOCKER_SUBNET=192.168.250.0/24
    28. ## IPV6 设置, 容器是否开启 ipv6 nat, USE_IPV6=1 表示开启, 为 0 的情况下 DOCKER_SUBNET_IPV6 定义不生效
    29. USE_IPV6=0
    30. DOCKER_SUBNET_IPV6=fc00:1010:1111:200::/64
    31. ## 访问配置
    32. HTTP_PORT=80
    33. SSH_PORT=2222
    34. MAGNUS_MYSQL_PORT=33060
    35. MAGNUS_MARIADB_PORT=33061
    36. ## HTTPS 配置, 参考 https://docs.jumpserver.org/zh/master/admin-guide/proxy/ 配置
    37. # USE_LB=1
    38. # HTTPS_PORT=443
    39. # SERVER_NAME=your_domain_name
    40. # SSL_CERTIFICATE=your_cert
    41. # SSL_CERTIFICATE_KEY=your_cert_key
    42. ## Nginx 文件上传大小
    43. CLIENT_MAX_BODY_SIZE=4096m
    44. ## Task 配置, 是否启动 jms_celery 容器, 单节点必须开启
    45. USE_TASK=1
    46. ## XPack, USE_XPACK=1 表示开启, 开源版本设置无效
    47. USE_XPACK=0
    48. RDP_PORT=3389
    49. MAGNUS_POSTGRE_PORT=54320
    50. TCP_SEND_BUFFER_BYTES=4194304
    51. TCP_RECV_BUFFER_BYTES=6291456
    52. # Core 配置, Session 定义, SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期, SESSION_EXPIRE_AT_BROWSER_CLOSE=True 表示关闭浏览器即 session 过期
    53. # SESSION_COOKIE_AGE=86400
    54. SESSION_EXPIRE_AT_BROWSER_CLOSE=True
    55. # Koko Lion XRDP 组件配置
    56. CORE_HOST=http://core:8080
    57. JUMPSERVER_ENABLE_FONT_SMOOTHING=True
    58. ## 终端使用宿主 HOSTNAME 标识
    59. SERVER_HOSTNAME=${HOSTNAME}
    60. # 额外的配置
    61. CURRENT_VERSION=
    1. # 安装
    2. ./jmsctl.sh install
    3. # 启动
    4. ./jmsctl.sh start
    1. # 安装完成后配置文件 /opt/jumpserver/config/config.txt
    1. cd /opt/jumpserver-installer-v2.23.2
    2. # 启动
    3. ./jmsctl.sh start
    4. # 停止
    5. ./jmsctl.sh down
    6. # 卸载
    7. ./jmsctl.sh uninstall
    8. # 帮助
    9. ./jmsctl.sh -h

    Kubernetes

    1. helm repo add jumpserver https://jumpserver.github.io/helm-charts
    2. helm repo list
    3. vi values.yaml
    1. # 模板 https://github.com/jumpserver/helm-charts/blob/main/charts/jumpserver/values.yaml
    2. # Default values for jumpserver.
    3. # This is a YAML-formatted file.
    4. # Declare variables to be passed into your templates.
    5. nameOverride: ""
    6. fullnameOverride: ""
    7. ## @param global.imageRegistry Global Docker image registry
    8. ## @param global.imagePullSecrets Global Docker registry secret names as an array
    9. ## @param global.storageClass Global StorageClass for Persistent Volume(s)
    10. ## @param global.redis.password Global Redis™ password (overrides `auth.password`)
    11. ##
    12. global:
    13. imageRegistry: "docker.io" # 国内可以使用华为云加速 swr.cn-south-1.myhuaweicloud.com
    14. imageTag: v2.23.2 # 版本号
    15. ## E.g.
    16. # imagePullSecrets:
    17. # - name: harborsecret
    18. #
    19. # storageClass: "jumpserver-data"
    20. ##
    21. # - name: yourSecretKey
    22. storageClass: "" # (*必填) NFS SC
    23. ## Please configure your MySQL server first
    24. ## Jumpserver will not start the external MySQL server.
    25. ##
    26. externalDatabase: # (*必填) 数据库相关设置
    27. engine: mysql
    28. host: localhost
    29. port: 3306
    30. user: root
    31. password: ""
    32. database: jumpserver
    33. ## Please configure your Redis server first
    34. ## Jumpserver will not start the external Redis server.
    35. ##
    36. externalRedis: # (*必填) Redis 设置
    37. host: localhost
    38. port: 6379
    39. password: ""
    40. serviceAccount:
    41. # Specifies whether a service account should be created
    42. create: false
    43. # The name of the service account to use.
    44. # If not set and create is true, a name is generated using the fullname template
    45. name:
    46. ingress:
    47. enabled: true # 不使用 ingress 可以关闭
    48. annotations:
    49. # kubernetes.io/tls-acme: "true"
    50. compute-full-forwarded-for: "true"
    51. use-forwarded-headers: "true"
    52. kubernetes.io/ingress.class: nginx
    53. nginx.ingress.kubernetes.io/configuration-snippet: |
    54. proxy_set_header Upgrade "websocket";
    55. proxy_set_header Connection "Upgrade";
    56. hosts:
    57. - "test.jumpserver.org" # 对外域名
    58. tls: []
    59. # - secretName: chart-example-tls
    60. # hosts:
    61. # - chart-example.local
    62. core:
    63. enabled: true
    64. labels:
    65. app.jumpserver.org/name: jms-core
    66. config:
    67. # Generate a new random secret key by execute `cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50`
    68. # secretKey: "B3f2w8P2PfxIAS7s4URrD9YmSbtqX4vXdPUL217kL9XPUOWrmy"
    69. secretKey: "" # (*必填) 加密敏感信息的 secret_key, 长度推荐大于 50 位
    70. # Generate a new random bootstrap token by execute `cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16`
    71. # bootstrapToken: "7Q11Vz6R2J6BLAdO"
    72. bootstrapToken: "" # (*必填) 组件认证使用的 token, 长度推荐大于 24 位
    73. # Enabled it for debug
    74. debug: false
    75. log:
    76. level: ERROR
    77. replicaCount: 1
    78. image:
    79. registry: docker.io
    80. repository: jumpserver/core
    81. tag: v2.23.2
    82. pullPolicy: IfNotPresent
    83. command: []
    84. env:
    85. # See: https://docs.jumpserver.org/zh/master/admin-guide/env/#core
    86. SESSION_EXPIRE_AT_BROWSER_CLOSE: true
    87. # SESSION_COOKIE_AGE: 86400
    88. # SECURITY_VIEW_AUTH_NEED_MFA: true
    89. livenessProbe:
    90. failureThreshold: 30
    91. httpGet:
    92. path: /api/health/
    93. port: web
    94. readinessProbe:
    95. failureThreshold: 30
    96. httpGet:
    97. path: /api/health/
    98. port: web
    99. podSecurityContext: {}
    100. # fsGroup: 2000
    101. securityContext: {}
    102. # capabilities:
    103. # drop:
    104. # - ALL
    105. # readOnlyRootFilesystem: true
    106. # runAsNonRoot: true
    107. # runAsUser: 1000
    108. service:
    109. type: ClusterIP
    110. web:
    111. port: 8080
    112. ws:
    113. port: 8070
    114. resources: {}
    115. # We usually recommend not to specify default resources and to leave this as a conscious
    116. # choice for the user. This also increases chances charts run on environments with little
    117. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    118. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    119. # limits:
    120. # cpu: 1000m
    121. # memory: 2048Mi
    122. # requests:
    123. # cpu: 500m
    124. # memory: 1024Mi
    125. persistence:
    126. storageClassName: jumpserver-data
    127. accessModes:
    128. - ReadWriteMany
    129. size: 100Gi
    130. # annotations: {}
    131. finalizers:
    132. - kubernetes.io/pvc-protection
    133. # subPath: ""
    134. # existingClaim:
    135. volumeMounts: []
    136. volumes: []
    137. nodeSelector: {}
    138. tolerations: []
    139. affinity: {}
    140. koko:
    141. enabled: true
    142. labels:
    143. app.jumpserver.org/name: jms-koko
    144. config:
    145. log:
    146. level: ERROR
    147. replicaCount: 1
    148. image:
    149. registry: docker.io
    150. repository: jumpserver/koko
    151. tag: v2.23.2
    152. pullPolicy: IfNotPresent
    153. command: []
    154. env: []
    155. # See: https://docs.jumpserver.org/zh/master/admin-guide/env/#koko
    156. # LANGUAGE_CODE: zh
    157. # REUSE_CONNECTION: true
    158. # ENABLE_LOCAL_PORT_FORWARD: true
    159. # ENABLE_VSCODE_SUPPORT: true
    160. livenessProbe:
    161. failureThreshold: 30
    162. httpGet:
    163. path: /koko/health/
    164. port: web
    165. readinessProbe:
    166. failureThreshold: 30
    167. httpGet:
    168. path: /koko/health/
    169. port: web
    170. podSecurityContext: {}
    171. # fsGroup: 2000
    172. securityContext:
    173. privileged: true
    174. # capabilities:
    175. # drop:
    176. # - ALL
    177. # readOnlyRootFilesystem: true
    178. # runAsNonRoot: true
    179. # runAsUser: 1000
    180. service:
    181. type: ClusterIP
    182. web:
    183. port: 5000
    184. ssh:
    185. port: 2222
    186. resources: {}
    187. # We usually recommend not to specify default resources and to leave this as a conscious
    188. # choice for the user. This also increases chances charts run on environments with little
    189. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    190. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    191. # limits:
    192. # cpu: 100m
    193. # memory: 128Mi
    194. # requests:
    195. # cpu: 100m
    196. # memory: 128Mi
    197. persistence:
    198. storageClassName: jumpserver-data
    199. accessModes:
    200. - ReadWriteMany
    201. size: 10Gi
    202. # annotations: {}
    203. finalizers:
    204. - kubernetes.io/pvc-protection
    205. volumeMounts: []
    206. volumes: []
    207. nodeSelector: {}
    208. tolerations: []
    209. affinity: {}
    210. lion:
    211. enabled: true
    212. labels:
    213. app.jumpserver.org/name: jms-lion
    214. config:
    215. log:
    216. level: ERROR
    217. replicaCount: 1
    218. image:
    219. registry: docker.io
    220. repository: jumpserver/lion
    221. tag: v2.23.2
    222. pullPolicy: IfNotPresent
    223. command: []
    224. env:
    225. # See: https://docs.jumpserver.org/zh/master/admin-guide/env/#lion
    226. JUMPSERVER_ENABLE_FONT_SMOOTHING: true
    227. # JUMPSERVER_COLOR_DEPTH: 32
    228. # JUMPSERVER_ENABLE_WALLPAPER: true
    229. # JUMPSERVER_ENABLE_THEMING: true
    230. # JUMPSERVER_ENABLE_FULL_WINDOW_DRAG: true
    231. # JUMPSERVER_ENABLE_DESKTOP_COMPOSITION: true
    232. # JUMPSERVER_ENABLE_MENU_ANIMATIONS: true
    233. livenessProbe:
    234. failureThreshold: 30
    235. httpGet:
    236. path: /lion/health/
    237. port: web
    238. readinessProbe:
    239. failureThreshold: 30
    240. httpGet:
    241. path: /lion/health/
    242. port: web
    243. podSecurityContext: {}
    244. # fsGroup: 2000
    245. securityContext: {}
    246. # capabilities:
    247. # drop:
    248. # - ALL
    249. # readOnlyRootFilesystem: true
    250. # runAsNonRoot: true
    251. # runAsUser: 1000
    252. service:
    253. type: ClusterIP
    254. web:
    255. port: 8081
    256. resources: {}
    257. # We usually recommend not to specify default resources and to leave this as a conscious
    258. # choice for the user. This also increases chances charts run on environments with little
    259. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    260. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    261. # limits:
    262. # cpu: 100m
    263. # memory: 512Mi
    264. # requests:
    265. # cpu: 100m
    266. # memory: 512Mi
    267. persistence:
    268. storageClassName: jumpserver-data
    269. accessModes:
    270. - ReadWriteMany
    271. size: 50Gi
    272. # annotations: {}
    273. finalizers:
    274. - kubernetes.io/pvc-protection
    275. volumeMounts: []
    276. volumes: []
    277. nodeSelector: {}
    278. tolerations: []
    279. affinity: {}
    280. magnus:
    281. enabled: true
    282. labels:
    283. app.jumpserver.org/name: jms-magnus
    284. log:
    285. level: ERROR
    286. replicaCount: 1
    287. image:
    288. registry: docker.io
    289. repository: jumpserver/magnus
    290. tag: v2.21.0
    291. pullPolicy: IfNotPresent
    292. command: []
    293. env: []
    294. livenessProbe:
    295. failureThreshold: 30
    296. tcpSocket:
    297. port: mysql
    298. readinessProbe:
    299. failureThreshold: 30
    300. tcpSocket:
    301. port: mysql
    302. podSecurityContext: {}
    303. # fsGroup: 2000
    304. securityContext: {}
    305. # capabilities:
    306. # drop:
    307. # - ALL
    308. # readOnlyRootFilesystem: true
    309. # runAsNonRoot: true
    310. # runAsUser: 1000
    311. service:
    312. type: ClusterIP
    313. mysql:
    314. port: 33060
    315. mariadb:
    316. port: 33061
    317. postgre:
    318. port: 54320
    319. resources: {}
    320. # We usually recommend not to specify default resources and to leave this as a conscious
    321. # choice for the user. This also increases chances charts run on environments with little
    322. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    323. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    324. # limits:
    325. # cpu: 100m
    326. # memory: 512Mi
    327. # requests:
    328. # cpu: 100m
    329. # memory: 512Mi
    330. persistence:
    331. storageClassName: jumpserver-data
    332. accessModes:
    333. - ReadWriteMany
    334. size: 10Gi
    335. # annotations: {}
    336. finalizers:
    337. - kubernetes.io/pvc-protection
    338. volumeMounts: []
    339. volumes: []
    340. nodeSelector: {}
    341. tolerations: []
    342. affinity: {}
    343. xpack:
    344. enabled: false # 企业版本打开此选项
    345. omnidb:
    346. labels:
    347. app.jumpserver.org/name: jms-omnidb
    348. config:
    349. log:
    350. level: ERROR
    351. replicaCount: 1
    352. image:
    353. registry: registry.fit2cloud.com
    354. repository: jumpserver/omnidb
    355. tag: v2.23.2
    356. pullPolicy: IfNotPresent
    357. command: []
    358. env: []
    359. livenessProbe:
    360. failureThreshold: 30
    361. tcpSocket:
    362. port: web
    363. readinessProbe:
    364. failureThreshold: 30
    365. tcpSocket:
    366. port: web
    367. podSecurityContext: {}
    368. # fsGroup: 2000
    369. securityContext: {}
    370. # capabilities:
    371. # drop:
    372. # - ALL
    373. # readOnlyRootFilesystem: true
    374. # runAsNonRoot: true
    375. # runAsUser: 1000
    376. service:
    377. type: ClusterIP
    378. web:
    379. port: 8082
    380. resources: {}
    381. # We usually recommend not to specify default resources and to leave this as a conscious
    382. # choice for the user. This also increases chances charts run on environments with little
    383. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    384. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    385. # limits:
    386. # cpu: 100m
    387. # memory: 128Mi
    388. # requests:
    389. # cpu: 100m
    390. # memory: 128Mi
    391. persistence:
    392. storageClassName: jumpserver-data
    393. accessModes:
    394. - ReadWriteMany
    395. size: 10Gi
    396. # annotations: {}
    397. finalizers:
    398. - kubernetes.io/pvc-protection
    399. volumeMounts: []
    400. volumes: []
    401. nodeSelector: {}
    402. tolerations: []
    403. affinity: {}
    404. xrdp:
    405. labels:
    406. app.jumpserver.org/name: jms-xrdp
    407. config:
    408. log:
    409. level: ERROR
    410. replicaCount: 1
    411. image:
    412. registry: registry.fit2cloud.com
    413. repository: jumpserver/xrdp
    414. tag: v2.23.2
    415. pullPolicy: IfNotPresent
    416. command: []
    417. env:
    418. # tcp_send_buffer_bytes and tcp_recv_buffer_bytes See: https://github.com/neutrinolabs/xrdp/issues/1483
    419. TCP_SEND_BUFFER_BYTES: 4194304
    420. TCP_RECV_BUFFER_BYTES: 6291456
    421. JUMPSERVER_ENABLE_FONT_SMOOTHING: true
    422. # JUMPSERVER_ENABLE_WALLPAPER: true
    423. # JUMPSERVER_ENABLE_THEMING: true
    424. # JUMPSERVER_ENABLE_FULL_WINDOW_DRAG: true
    425. # JUMPSERVER_ENABLE_DESKTOP_COMPOSITION: true
    426. # JUMPSERVER_ENABLE_MENU_ANIMATIONS: true
    427. livenessProbe:
    428. failureThreshold: 30
    429. tcpSocket:
    430. port: rdp
    431. readinessProbe:
    432. failureThreshold: 30
    433. tcpSocket:
    434. port: rdp
    435. podSecurityContext: {}
    436. # fsGroup: 2000
    437. securityContext: {}
    438. # capabilities:
    439. # drop:
    440. # - ALL
    441. # readOnlyRootFilesystem: true
    442. # runAsNonRoot: true
    443. # runAsUser: 1000
    444. service:
    445. type: ClusterIP
    446. rdp:
    447. port: 3389
    448. resources: {}
    449. # We usually recommend not to specify default resources and to leave this as a conscious
    450. # choice for the user. This also increases chances charts run on environments with little
    451. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    452. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    453. # limits:
    454. # cpu: 100m
    455. # memory: 128Mi
    456. # requests:
    457. # cpu: 100m
    458. # memory: 128Mi
    459. persistence:
    460. storageClassName: jumpserver-data
    461. accessModes:
    462. - ReadWriteMany
    463. size: 50Gi
    464. # annotations: {}
    465. finalizers:
    466. - kubernetes.io/pvc-protection
    467. volumeMounts: []
    468. volumes: []
    469. nodeSelector: {}
    470. tolerations: []
    471. affinity: {}
    472. web:
    473. enabled: true
    474. labels:
    475. app.jumpserver.org/name: jms-web
    476. replicaCount: 1
    477. image:
    478. registry: docker.io
    479. repository: jumpserver/web
    480. tag: v2.23.2
    481. pullPolicy: IfNotPresent
    482. command: []
    483. env: []
    484. # nginx client_max_body_size, default 4G
    485. # CLIENT_MAX_BODY_SIZE: 4096m
    486. livenessProbe:
    487. failureThreshold: 30
    488. httpGet:
    489. path: /api/health/
    490. port: web
    491. readinessProbe:
    492. failureThreshold: 30
    493. httpGet:
    494. path: /api/health/
    495. port: web
    496. podSecurityContext: {}
    497. # fsGroup: 2000
    498. securityContext: {}
    499. # capabilities:
    500. # drop:
    501. # - ALL
    502. # readOnlyRootFilesystem: true
    503. # runAsNonRoot: true
    504. # runAsUser: 1000
    505. service:
    506. type: ClusterIP
    507. web:
    508. port: 80
    509. resources: {}
    510. # We usually recommend not to specify default resources and to leave this as a conscious
    511. # choice for the user. This also increases chances charts run on environments with little
    512. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    513. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    514. # limits:
    515. # cpu: 100m
    516. # memory: 128Mi
    517. # requests:
    518. # cpu: 100m
    519. # memory: 128Mi
    520. persistence:
    521. storageClassName: jumpserver-data
    522. accessModes:
    523. - ReadWriteMany
    524. size: 1Gi
    525. # annotations: {}
    526. finalizers:
    527. - kubernetes.io/pvc-protection
    528. volumeMounts: []
    529. volumes: []
    530. nodeSelector: {}
    531. tolerations: []
    532. affinity: {}
    1. # 安装
    2. helm install jms-k8s jumpserver/jumpserver -n default -f values.yaml
    3. # 卸载

    源码部署