added repo
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{{- $ctx := dict "helm" . }}
|
||||
{{- $app := .Values.vmselect }}
|
||||
{{- if and (kindIs "map" $app) $app.enabled ($app.service).enabled (default false $app.splitService) }}
|
||||
{{- if ($app.externalService).enabled }}
|
||||
{{- $service := $app.service }}
|
||||
{{- $_ := set $ctx "extraLabels" $service.labels }}
|
||||
{{- $_ := set $ctx "appKey" "vmselect" }}
|
||||
{{- $fullname := include "vm.plain.fullname" $ctx }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
{{- with $service.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels: {{ include "vm.labels" $ctx | nindent 4 }}
|
||||
{{- $_ := unset $ctx "extraLabels" }}
|
||||
name: {{ $app.externalService.name}}
|
||||
namespace: {{ include "vm.namespace" $ }}
|
||||
spec:
|
||||
type: ExternalName
|
||||
externalName: {{ $fullname }}.{{ include "vm.namespace" $ }}.svc.cluster.local
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user