Public Information
This commit is contained in:
32
charts/nstl/templates/clusterservice.tpl
Normal file
32
charts/nstl/templates/clusterservice.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{{- include "nplus.init" $ -}}
|
||||
{{- $name := (print .component.prefix "nstl-cluster") -}}
|
||||
{{- if (.Values.clusterService).enabled }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
{{- if .this.utils.includeNamespace }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
name: {{ $name }}
|
||||
labels:
|
||||
{{- include "nplus.instanceLabels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "nplus.argoWave" . | nindent 4 }}
|
||||
{{- include "nplus.annotations" . | nindent 4 }}
|
||||
{{- include "nplus.securityAnnotations" . | nindent 4 }}
|
||||
{{- include "nplus.serviceAnnotations" . | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
{{- include "nplus.defaultServicePorts" . | nindent 4 }}
|
||||
selector:
|
||||
{{- include "nplus.selectorLabelsNc" . | nindent 4 }}
|
||||
sessionAffinity: ClientIP
|
||||
sessionAffinityConfig:
|
||||
clientIP:
|
||||
timeoutSeconds: 1800
|
||||
{{- else }}
|
||||
# kind: Service
|
||||
# Not Generating any Service for {{ $name }} as the Cluster Service is not enabled on component {{ .component.fullName }}
|
||||
# clusterService: {{ .Values.clusterService }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user