25 lines
876 B
YAML
25 lines
876 B
YAML
{{- if eq .Values.controlPlane.mode "global" }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "kuma.controlPlane.globalZoneSync.serviceName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.controlPlane.globalZoneSyncService.annotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.controlPlane.globalZoneSyncService.type }}
|
|
{{- if .Values.controlPlane.globalZoneSyncService.loadBalancerIP }}
|
|
loadBalancerIP: {{ .Values.controlPlane.globalZoneSyncService.loadBalancerIP }}
|
|
{{- end }}
|
|
ports:
|
|
- port: {{ .Values.controlPlane.globalZoneSyncService.port }}
|
|
{{- if eq .Values.controlPlane.globalZoneSyncService.type "NodePort" }}
|
|
nodePort: 30685
|
|
{{- end }}
|
|
name: global-zone-sync
|
|
selector:
|
|
{{ include "kuma.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|