mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-21 00:13:48 +00:00
commit
c60543f23b
@ -1,29 +0,0 @@
|
|||||||
{{- 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 }}
|
|
@ -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-ssh" }}
|
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-koko" }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@ -11,8 +11,12 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .service.annotations | nindent 4 }}
|
{{- toYaml .service.annotations | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .service.ssh.type }}
|
type: {{ .service.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
|
@ -202,12 +202,10 @@ koko:
|
|||||||
# runAsUser: 1000
|
# runAsUser: 1000
|
||||||
|
|
||||||
service:
|
service:
|
||||||
web:
|
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
web:
|
||||||
port: 5000
|
port: 5000
|
||||||
ssh:
|
ssh:
|
||||||
type: ClusterIP
|
|
||||||
# loadBalancerIP:
|
|
||||||
port: 2222
|
port: 2222
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user