text: {{- if .Values.service.runHQ }}
  apiVersion: v1
  kind: Service
  metadata:
    name: {{ include "informix-ibm.fullname" . }}{{ if not (hasSuffix  "-hq" (include "informix-ibm.fullname" . ) ) }}-hq{{ end }}
    labels:
  {{ include "informix-ibm.labels" . | indent 4 }}
  spec:
    type: {{ .Values.service.type }}
    ports:
      - name: http-hq
        port: {{ .Values.service.port.hq }}
        targetPort: hq
        protocol: TCP   
    selector:
      app.kubernetes.io/name: {{ include "informix-ibm.name" . }}
      app.kubernetes.io/instance: {{ .Release.Name }}
  {{- end }}