mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-29 20:12:43 +00:00
perf: 拆分服务
This commit is contained in:
parent
40e8925f9c
commit
4b2ca8414f
@ -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 }}
|
||||||
|
@ -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 }}
|
@ -202,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: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user