logsearchapi-service.yaml 440 B

12345678
  1. {{ if .Values.logsearchapi.enabled }}
  2. {{ $ports := list }}
  3. {{ $ports = mustAppend $ports (dict "name" "logsearchapi-tcp" "port" 8080 "targetPort" 8080) }}
  4. {{ $values := (. | mustDeepCopy) }}
  5. {{ $_ := set $values "common" (dict "nameSuffix" (printf "%s-log" (include "logsearchapi.nameSuffix" .))) }}
  6. {{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }}
  7. {{ include "common.classes.service" $values }}
  8. {{ end }}