---
apiVersion: v1
kind: Service
metadata:
  annotations:
{{- if .Values.global.commonAnnotations }}
{{- include "render-value" ( dict "value" .Values.global.commonAnnotations "context" .) | nindent 4 }}
{{- end }}
  labels:
{{- if .Values.global.commonLabels }}
{{- include "render-value" ( dict "value" .Values.global.commonLabels "context" .) | nindent 4 }}
{{- end }}
    app.kubernetes.io/part-of: federatorai
    app: alameda
    component: alameda-rabbitmq
  name: alameda-rabbitmq
  namespace: {{ .Release.Namespace }}
spec:
  ports:
    - name: amqp
      port: 5672
      protocol: TCP
      targetPort: amqp
    - name: http
      port: 15672
      protocol: TCP
      targetPort: http
  selector:
    component: alameda-rabbitmq
  type: ClusterIP