apiVersion: v1
kind: Service
metadata:
  name: hive-metastore
  labels:
    app: hive
    hive: metastore
spec:
  ports:
  - name: meta
    port: 9083
{{- if .Values.hive.spec.metastore.config.tls.enabled }}
    targetPort: ghostunnel
{{- else }}
    targetPort: meta
{{- end }}
  - name: metrics
    port: 8082
  selector:
    app: hive
    hive: metastore
  sessionAffinity: None
  type: ClusterIP
