mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-25 10:09:41 +00:00
commit
97bfdaa88c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
**/values-debug.yaml
|
**/values-debug.yaml
|
||||||
|
.idea/
|
||||||
deploy.sh
|
deploy.sh
|
@ -10,6 +10,7 @@
|
|||||||
.hg/
|
.hg/
|
||||||
.hgignore
|
.hgignore
|
||||||
.svn/
|
.svn/
|
||||||
|
.idea/
|
||||||
# Common backup files
|
# Common backup files
|
||||||
*.swp
|
*.swp
|
||||||
*.bak
|
*.bak
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: "v2.15.4"
|
appVersion: "v2.16.0"
|
||||||
description: A Helm chart for Deploying Jumpserver on Kubernetes
|
description: A Helm chart for Deploying Jumpserver on Kubernetes
|
||||||
name: jumpserver
|
name: jumpserver
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
{{- if .Values.ingress.enabled }}
|
{{- if .Values.ingress.enabled }}
|
||||||
{{- range $host := .Values.ingress.hosts }}
|
{{- range $host := .Values.ingress.hosts }}
|
||||||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host }}
|
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host }}
|
||||||
|
username: admin password: admin
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if eq .Values.koko.service.ssh.type "LoadBalancer" }}
|
||||||
2. Access the Jumpserver SSH server by running these commands:
|
2. Access the Jumpserver SSH server by running these commands:
|
||||||
{{- if eq .Values.koko.service.type "LoadBalancer" }}
|
ssh -p{{ .Values.koko.service.ssh.port }} admin@{{ .Values.koko.service.ssh.loadBalancerIP }}
|
||||||
ssh -p{{ .Values.koko.service.ssh.port }} admin@{{ .Values.koko.service.loadBalancerIP }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -10,6 +10,9 @@ Return the proper image name
|
|||||||
{{- if .global.imageRegistry }}
|
{{- if .global.imageRegistry }}
|
||||||
{{- $registryName = .global.imageRegistry -}}
|
{{- $registryName = .global.imageRegistry -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- if .global.imageTag }}
|
||||||
|
{{- $tag = .global.imageTag -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if $registryName }}
|
{{- if $registryName }}
|
||||||
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
|
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{- if .Values.koko.enabled }}
|
{{- if .Values.koko.enabled }}
|
||||||
{{- with .Values.koko }}
|
{{- with .Values.koko }}
|
||||||
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-koko" }}
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-koko-ssh" }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@ -11,12 +11,8 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .service.annotations | nindent 4 }}
|
{{- toYaml .service.annotations | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .service.type }}
|
type: {{ .service.ssh.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .service.web.port }}
|
|
||||||
targetPort: web
|
|
||||||
protocol: TCP
|
|
||||||
name: web
|
|
||||||
- port: {{ .service.ssh.port }}
|
- port: {{ .service.ssh.port }}
|
||||||
targetPort: ssh
|
targetPort: ssh
|
||||||
protocol: TCP
|
protocol: TCP
|
29
templates/koko/service-koko-web.yaml
Normal file
29
templates/koko/service-koko-web.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{{- if .Values.koko.enabled }}
|
||||||
|
{{- with .Values.koko }}
|
||||||
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-koko-web" }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
labels:
|
||||||
|
{{- include "jumpserver.labels" $ | nindent 4 }}
|
||||||
|
{{- toYaml .labels | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .service.annotations | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
type: {{ .service.web.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .service.web.port }}
|
||||||
|
targetPort: web
|
||||||
|
protocol: TCP
|
||||||
|
name: web
|
||||||
|
sessionAffinity: ClientIP
|
||||||
|
sessionAffinityConfig:
|
||||||
|
clientIP:
|
||||||
|
timeoutSeconds: 10800
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: {{ include "jumpserver.name" $ }}
|
||||||
|
app.kubernetes.io/instance: {{ $.Release.Name }}
|
||||||
|
{{- toYaml .labels | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
17
values.yaml
17
values.yaml
@ -12,6 +12,7 @@ fullnameOverride: ""
|
|||||||
##
|
##
|
||||||
global:
|
global:
|
||||||
imageRegistry: "docker.io"
|
imageRegistry: "docker.io"
|
||||||
|
imageTag: v2.16.0
|
||||||
## E.g.
|
## E.g.
|
||||||
# imagePullSecrets:
|
# imagePullSecrets:
|
||||||
# - myRegistryKeySecretName
|
# - myRegistryKeySecretName
|
||||||
@ -84,7 +85,7 @@ core:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/core
|
repository: jumpserver/core
|
||||||
tag: v2.15.4
|
tag: v2.16.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -169,7 +170,7 @@ koko:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/koko
|
repository: jumpserver/koko
|
||||||
tag: v2.15.4
|
tag: v2.16.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -201,10 +202,12 @@ koko:
|
|||||||
# runAsUser: 1000
|
# runAsUser: 1000
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
|
||||||
web:
|
web:
|
||||||
|
type: ClusterIP
|
||||||
port: 5000
|
port: 5000
|
||||||
ssh:
|
ssh:
|
||||||
|
type: ClusterIP
|
||||||
|
# loadBalancerIP:
|
||||||
port: 2222
|
port: 2222
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
@ -253,7 +256,7 @@ lion:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/lion
|
repository: jumpserver/lion
|
||||||
tag: v2.15.4
|
tag: v2.16.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -335,7 +338,7 @@ omnidb:
|
|||||||
image:
|
image:
|
||||||
registry: registry.fit2cloud.com
|
registry: registry.fit2cloud.com
|
||||||
repository: jumpserver/omnidb
|
repository: jumpserver/omnidb
|
||||||
tag: v2.15.4
|
tag: v2.16.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -414,7 +417,7 @@ xrdp:
|
|||||||
image:
|
image:
|
||||||
registry: registry.fit2cloud.com
|
registry: registry.fit2cloud.com
|
||||||
repository: jumpserver/xrdp
|
repository: jumpserver/xrdp
|
||||||
tag: v2.15.4
|
tag: v2.16.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
@ -489,7 +492,7 @@ web:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jumpserver/web
|
repository: jumpserver/web
|
||||||
tag: v2.15.4
|
tag: v2.16.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
command: []
|
command: []
|
||||||
|
Loading…
Reference in New Issue
Block a user