安装文档

    全新安装的 Linux(内核推荐大于 4.0)
    需要连接 互联网
    使用 root 用户执行

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

    外置环境要求

    • 推荐使用外置 数据库 和 Redis,方便日后扩展升级
    DBVersionCacheVersion
    MySQL>= 5.7Redis>= 5.0
    MariaDB>= 10.2
    1. cd /opt/jumpserver-installer-v2.18.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.18.2/jumpserver-installer-v2.18.2.tar.gz
    3. tar -xf jumpserver-installer-v2.18.2.tar.gz
    4. cd jumpserver-installer-v2.18.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=2001:db8:10::/64
    31. ## Nginx 配置, USE_LB=1 表示开启, 为 0 的情况下, HTTPS_PORT 定义不生效
    32. HTTP_PORT=80
    33. SSH_PORT=2222
    34. RDP_PORT=3389
    35. USE_LB=0
    36. HTTPS_PORT=443
    37. ## Task 配置, 是否启动 jms_celery 容器, 单节点必须开启
    38. USE_TASK=1
    39. ## XPack, USE_XPACK=1 表示开启, 开源版本设置无效
    40. USE_XPACK=0
    41. # Core 配置, Session 定义, SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期, SESSION_EXPIRE_AT_BROWSER_CLOSE=true 表示关闭浏览器即 session 过期
    42. # SESSION_COOKIE_AGE=86400
    43. SESSION_EXPIRE_AT_BROWSER_CLOSE=true
    44. # Koko Lion XRDP 组件配置
    45. CORE_HOST=http://core:8080
    46. # 额外的配置
    47. CURRENT_VERSION=
    1. # 安装
    2. ./jmsctl.sh install
    3. # 启动
    4. ./jmsctl.sh start
    1. # 安装完成后配置文件 /opt/jumpserver/config/config.txt

    离线部署(amd64)

    从飞致云社区 下载最新的 linux/amd64 离线包, 并上传到部署服务器的 /opt 目录

    1. cd /opt
    2. tar -xf jumpserver-offline-installer-v2.18.2-amd64-114.tar.gz
    3. cd jumpserver-offline-installer-v2.18.2-amd64-114
    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=2001:db8:10::/64
    31. ## Nginx 配置, USE_LB=1 表示开启, 为 0 的情况下, HTTPS_PORT 定义不生效
    32. HTTP_PORT=80
    33. SSH_PORT=2222
    34. RDP_PORT=3389
    35. USE_LB=0
    36. HTTPS_PORT=443
    37. ## Task 配置, 是否启动 jms_celery 容器, 单节点必须开启
    38. USE_TASK=1
    39. ## XPack, USE_XPACK=1 表示开启, 开源版本设置无效
    40. USE_XPACK=0
    41. # Core 配置, Session 定义, SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期, SESSION_EXPIRE_AT_BROWSER_CLOSE=true 表示关闭浏览器即 session 过期
    42. # SESSION_COOKIE_AGE=86400
    43. SESSION_EXPIRE_AT_BROWSER_CLOSE=true
    44. # Koko Lion XRDP 组件配置
    45. CORE_HOST=http://core:8080
    46. # 额外的配置
    47. CURRENT_VERSION=
    1. # 安装
    2. ./jmsctl.sh install
    3. # 启动
    4. ./jmsctl.sh start
    1. # 安装完成后配置文件 /opt/jumpserver/config/config.txt
    1. cd /opt/jumpserver-installer-v2.18.2
    2. # 启动
    3. ./jmsctl.sh start
    4. # 停止
    5. ./jmsctl.sh down
    6. # 卸载
    7. ./jmsctl.sh uninstall
    8. # 帮助
    9. ./jmsctl.sh -h

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

    1. cd /opt
    2. tar -xf jumpserver-offline-installer-v2.18.2-arm64-114.tar.gz
    3. cd jumpserver-offline-installer-v2.18.2-arm64-114
    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=2001:db8:10::/64
    31. ## Nginx 配置, USE_LB=1 表示开启, 为 0 的情况下, HTTPS_PORT 定义不生效
    32. HTTP_PORT=80
    33. SSH_PORT=2222
    34. RDP_PORT=3389
    35. USE_LB=0
    36. HTTPS_PORT=443
    37. ## Task 配置, 是否启动 jms_celery 容器, 单节点必须开启
    38. USE_TASK=1
    39. ## XPack, USE_XPACK=1 表示开启, 开源版本设置无效
    40. USE_XPACK=0
    41. # Core 配置, Session 定义, SESSION_COOKIE_AGE 表示闲置多少秒后 session 过期, SESSION_EXPIRE_AT_BROWSER_CLOSE=true 表示关闭浏览器即 session 过期
    42. # SESSION_COOKIE_AGE=86400
    43. SESSION_EXPIRE_AT_BROWSER_CLOSE=true
    44. # Koko Lion XRDP 组件配置
    45. CORE_HOST=http://core:8080
    46. ## Lion 开启字体平滑
    47. JUMPSERVER_ENABLE_FONT_SMOOTHING=true
    48. ## Nginx 文件上传大小
    49. CLIENT_MAX_BODY_SIZE=4096m
    50. ## 终端使用宿主 HOSTNAME 标识
    51. SERVER_HOSTNAME=${HOSTNAME}
    52. # 额外的配置
    53. CURRENT_VERSION=
    1. # 安装
    2. ./jmsctl.sh install
    3. # 启动
    4. ./jmsctl.sh start
    1. # 安装完成后配置文件 /opt/jumpserver/config/config.txt
    1. cd /opt/jumpserver-installer-v2.18.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. ##
    11. imageRegistry: "docker.io" # 国内可以使用华为云加速 swr.cn-south-1.myhuaweicloud.com
    12. imageTag: v2.16.3 # 版本号
    13. ## E.g.
    14. # imagePullSecrets:
    15. # - myRegistryKeySecretName
    16. ##
    17. imagePullSecrets: []
    18. # - name: yourSecretKey
    19. storageClass: "" # NFS SC
    20. ## If the Redis database included in the chart is disabled, JumpServer will
    21. ## use below parameters to connect to an external Redis server.
    22. ##
    23. externalDatabase: # 数据库相关设置
    24. engine: mysql
    25. host: localhost
    26. port: 3306
    27. user: root
    28. password: ""
    29. database: jumpserver
    30. ## If the MySQL database included in the chart is disabled, JumpServer will
    31. ## use below parameters to connect to an external MySQL server.
    32. ##
    33. externalRedis: # Redis 设置
    34. host: localhost
    35. port: 6379
    36. password: ""
    37. serviceAccount:
    38. # Specifies whether a service account should be created
    39. create: false
    40. # The name of the service account to use.
    41. # If not set and create is true, a name is generated using the fullname template
    42. name:
    43. ingress:
    44. enabled: true
    45. annotations:
    46. # kubernetes.io/tls-acme: "true"
    47. compute-full-forwarded-for: "true"
    48. use-forwarded-headers: "true"
    49. kubernetes.io/ingress.class: nginx
    50. nginx.ingress.kubernetes.io/configuration-snippet: |
    51. proxy_set_header Upgrade "websocket";
    52. proxy_set_header Connection "Upgrade";
    53. hosts:
    54. - "test.jumpserver.org" # 对外域名
    55. tls: []
    56. # - secretName: chart-example-tls
    57. # hosts:
    58. # - chart-example.local
    59. core:
    60. enabled: true
    61. labels:
    62. app.jumpserver.org/name: jms-core
    63. config:
    64. # Generate a new random secret key by execute `cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50`
    65. secretKey: "" # 加密敏感信息的 secret_key, 长度推荐大于 50 位
    66. # Generate a new random bootstrap token by execute `cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16`
    67. bootstrapToken: "" # 组件认证使用的 token, 长度推荐大于 24 位
    68. # Enabled it for debug
    69. debug: false
    70. log:
    71. level: ERROR
    72. replicaCount: 1
    73. image:
    74. registry: docker.io
    75. repository: jumpserver/core
    76. tag: v2.13.2
    77. pullPolicy: IfNotPresent
    78. command: []
    79. env: []
    80. livenessProbe:
    81. failureThreshold: 30
    82. httpGet:
    83. path: /api/health/
    84. port: web
    85. readinessProbe:
    86. failureThreshold: 30
    87. httpGet:
    88. path: /api/health/
    89. port: web
    90. podSecurityContext: {}
    91. # fsGroup: 2000
    92. securityContext: {}
    93. # capabilities:
    94. # drop:
    95. # - ALL
    96. # readOnlyRootFilesystem: true
    97. # runAsNonRoot: true
    98. # runAsUser: 1000
    99. service:
    100. type: ClusterIP
    101. web:
    102. port: 8080
    103. ws:
    104. port: 8070
    105. resources: {}
    106. # We usually recommend not to specify default resources and to leave this as a conscious
    107. # choice for the user. This also increases chances charts run on environments with little
    108. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    109. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    110. # limits:
    111. # cpu: 1000m
    112. # memory: 2048Mi
    113. # requests:
    114. # cpu: 500m
    115. # memory: 1024Mi
    116. persistence:
    117. storageClassName: jumpserver-data
    118. accessModes:
    119. - ReadWriteMany
    120. size: 10Gi
    121. # annotations: {}
    122. finalizers:
    123. - kubernetes.io/pvc-protection
    124. # subPath: ""
    125. # existingClaim:
    126. volumeMounts: []
    127. volumes: []
    128. nodeSelector: {}
    129. tolerations: []
    130. affinity: {}
    131. koko:
    132. enabled: true
    133. labels:
    134. app.jumpserver.org/name: jms-koko
    135. config:
    136. log:
    137. level: ERROR
    138. replicaCount: 1
    139. image:
    140. registry: docker.io
    141. repository: jumpserver/koko
    142. tag: v2.13.2
    143. pullPolicy: IfNotPresent
    144. command: []
    145. env: []
    146. livenessProbe:
    147. failureThreshold: 30
    148. httpGet:
    149. path: /koko/health/
    150. port: web
    151. readinessProbe:
    152. failureThreshold: 30
    153. httpGet:
    154. path: /koko/health/
    155. port: web
    156. podSecurityContext: {}
    157. # fsGroup: 2000
    158. securityContext:
    159. privileged: true
    160. # capabilities:
    161. # drop:
    162. # - ALL
    163. # readOnlyRootFilesystem: true
    164. # runAsNonRoot: true
    165. # runAsUser: 1000
    166. service:
    167. type: ClusterIP
    168. web:
    169. port: 5000
    170. ssh:
    171. port: 2222
    172. resources: {}
    173. # We usually recommend not to specify default resources and to leave this as a conscious
    174. # choice for the user. This also increases chances charts run on environments with little
    175. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    176. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    177. # limits:
    178. # cpu: 100m
    179. # memory: 128Mi
    180. # requests:
    181. # cpu: 100m
    182. # memory: 128Mi
    183. persistence:
    184. storageClassName: jumpserver-data
    185. accessModes:
    186. - ReadWriteMany
    187. size: 10Gi
    188. # annotations: {}
    189. finalizers:
    190. - kubernetes.io/pvc-protection
    191. volumeMounts: []
    192. volumes: []
    193. nodeSelector: {}
    194. tolerations: []
    195. affinity: {}
    196. lion:
    197. enabled: true
    198. labels:
    199. app.jumpserver.org/name: jms-lion
    200. config:
    201. log:
    202. level: ERROR
    203. replicaCount: 1
    204. image:
    205. registry: docker.io
    206. repository: jumpserver/lion
    207. tag: v2.13.2
    208. pullPolicy: IfNotPresent
    209. command: []
    210. env: []
    211. livenessProbe:
    212. failureThreshold: 30
    213. httpGet:
    214. path: /lion/health/
    215. port: web
    216. readinessProbe:
    217. failureThreshold: 30
    218. httpGet:
    219. path: /lion/health/
    220. port: web
    221. podSecurityContext: {}
    222. # fsGroup: 2000
    223. securityContext: {}
    224. # capabilities:
    225. # drop:
    226. # - ALL
    227. # readOnlyRootFilesystem: true
    228. # runAsNonRoot: true
    229. # runAsUser: 1000
    230. type: ClusterIP
    231. web:
    232. port: 8081
    233. resources: {}
    234. # We usually recommend not to specify default resources and to leave this as a conscious
    235. # choice for the user. This also increases chances charts run on environments with little
    236. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    237. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    238. # limits:
    239. # cpu: 100m
    240. # memory: 512Mi
    241. # requests:
    242. # cpu: 100m
    243. # memory: 512Mi
    244. persistence:
    245. storageClassName: jumpserver-data
    246. accessModes:
    247. - ReadWriteMany
    248. size: 10Gi
    249. # annotations: {}
    250. finalizers:
    251. - kubernetes.io/pvc-protection
    252. volumeMounts: []
    253. volumes: []
    254. nodeSelector: {}
    255. tolerations: []
    256. affinity: {}
    257. xpack:
    258. enabled: false # 企业版本打开此选项
    259. omnidb:
    260. labels:
    261. app.jumpserver.org/name: jms-omnidb
    262. config:
    263. log:
    264. level: ERROR
    265. replicaCount: 1
    266. image:
    267. registry: registry.fit2cloud.com
    268. repository: jumpserver/omnidb
    269. tag: v2.13.2
    270. pullPolicy: IfNotPresent
    271. command: []
    272. env: []
    273. livenessProbe:
    274. failureThreshold: 30
    275. tcpSocket:
    276. port: web
    277. readinessProbe:
    278. failureThreshold: 30
    279. tcpSocket:
    280. port: web
    281. podSecurityContext: {}
    282. # fsGroup: 2000
    283. securityContext: {}
    284. # capabilities:
    285. # drop:
    286. # - ALL
    287. # readOnlyRootFilesystem: true
    288. # runAsNonRoot: true
    289. # runAsUser: 1000
    290. service:
    291. type: ClusterIP
    292. web:
    293. port: 8082
    294. ws:
    295. port: 8071
    296. resources: {}
    297. # We usually recommend not to specify default resources and to leave this as a conscious
    298. # choice for the user. This also increases chances charts run on environments with little
    299. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    300. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    301. # limits:
    302. # cpu: 100m
    303. # memory: 128Mi
    304. # requests:
    305. # cpu: 100m
    306. # memory: 128Mi
    307. persistence:
    308. storageClassName: jumpserver-data
    309. accessModes:
    310. - ReadWriteMany
    311. size: 10Gi
    312. # annotations: {}
    313. finalizers:
    314. - kubernetes.io/pvc-protection
    315. volumeMounts: []
    316. volumes: []
    317. nodeSelector: {}
    318. tolerations: []
    319. affinity: {}
    320. xrdp:
    321. labels:
    322. app.jumpserver.org/name: jms-xrdp
    323. config:
    324. log:
    325. level: ERROR
    326. replicaCount: 1
    327. image:
    328. registry: registry.fit2cloud.com
    329. repository: jumpserver/xrdp
    330. tag: v2.13.2
    331. pullPolicy: IfNotPresent
    332. command: []
    333. env: []
    334. livenessProbe:
    335. failureThreshold: 30
    336. tcpSocket:
    337. port: rdp
    338. readinessProbe:
    339. failureThreshold: 30
    340. tcpSocket:
    341. port: rdp
    342. podSecurityContext: {}
    343. # fsGroup: 2000
    344. securityContext: {}
    345. # capabilities:
    346. # drop:
    347. # - ALL
    348. # readOnlyRootFilesystem: true
    349. # runAsNonRoot: true
    350. # runAsUser: 1000
    351. service:
    352. type: ClusterIP
    353. rdp:
    354. port: 3389
    355. resources: {}
    356. # We usually recommend not to specify default resources and to leave this as a conscious
    357. # choice for the user. This also increases chances charts run on environments with little
    358. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    359. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    360. # limits:
    361. # cpu: 100m
    362. # memory: 128Mi
    363. # requests:
    364. # cpu: 100m
    365. # memory: 128Mi
    366. persistence:
    367. storageClassName: jumpserver-data
    368. accessModes:
    369. - ReadWriteMany
    370. size: 10Gi
    371. # annotations: {}
    372. finalizers:
    373. - kubernetes.io/pvc-protection
    374. volumeMounts: []
    375. volumes: []
    376. nodeSelector: {}
    377. tolerations: []
    378. affinity: {}
    379. web:
    380. enabled: true
    381. labels:
    382. app.jumpserver.org/name: jms-web
    383. replicaCount: 1
    384. image:
    385. registry: docker.io
    386. repository: jumpserver/web
    387. tag: v2.13.2
    388. pullPolicy: IfNotPresent
    389. command: []
    390. env: []
    391. livenessProbe:
    392. failureThreshold: 30
    393. httpGet:
    394. path: /api/health/
    395. port: web
    396. readinessProbe:
    397. failureThreshold: 30
    398. httpGet:
    399. path: /api/health/
    400. port: web
    401. podSecurityContext: {}
    402. # fsGroup: 2000
    403. securityContext: {}
    404. # capabilities:
    405. # drop:
    406. # - ALL
    407. # readOnlyRootFilesystem: true
    408. # runAsNonRoot: true
    409. # runAsUser: 1000
    410. service:
    411. type: ClusterIP
    412. web:
    413. port: 80
    414. resources: {}
    415. # We usually recommend not to specify default resources and to leave this as a conscious
    416. # choice for the user. This also increases chances charts run on environments with little
    417. # resources, such as Minikube. If you do want to specify resources, uncomment the following
    418. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
    419. # limits:
    420. # cpu: 100m
    421. # memory: 128Mi
    422. # requests:
    423. # cpu: 100m
    424. # memory: 128Mi
    425. persistence:
    426. storageClassName: jumpserver-data
    427. accessModes:
    428. - ReadWriteMany
    429. size: 1Gi
    430. # annotations: {}
    431. finalizers:
    432. - kubernetes.io/pvc-protection
    433. volumeMounts: []
    434. volumes: []
    435. nodeSelector: {}
    436. tolerations: []
    437. affinity: {}
    1. # 安装
    2. helm install jms-k8s jumpserver/jumpserver -n default -f values.yaml
    3. helm uninstall jms-k8s -n default

    源码部署

    更多内容参考 快速入门