mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: alertmanager
|
||
|
|
labels:
|
||
|
|
{{- include "alertmanager.labels" . | nindent 4 }}
|
||
|
|
{{- if .Values.service.annotations }}
|
||
|
|
annotations:
|
||
|
|
{{- toYaml .Values.service.annotations | nindent 4 }}
|
||
|
|
{{- end }}
|
||
|
|
spec:
|
||
|
|
type: {{ .Values.service.type }}
|
||
|
|
ports:
|
||
|
|
- port: {{ .Values.service.port }}
|
||
|
|
targetPort: http
|
||
|
|
protocol: TCP
|
||
|
|
name: http
|
||
|
|
{{- if (and (eq .Values.service.type "NodePort") .Values.service.nodePort) }}
|
||
|
|
nodePort: {{ .Values.service.nodePort }}
|
||
|
|
{{- end }}
|
||
|
|
selector:
|
||
|
|
{{- include "alertmanager.selectorLabels" . | nindent 4 }}
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: {{ include "alertmanager.fullname" . }}-headless
|
||
|
|
labels:
|
||
|
|
{{- include "alertmanager.labels" . | nindent 4 }}
|
||
|
|
spec:
|
||
|
|
clusterIP: None
|
||
|
|
ports:
|
||
|
|
- port: {{ .Values.service.port }}
|
||
|
|
targetPort: http
|
||
|
|
protocol: TCP
|
||
|
|
name: http
|
||
|
|
{{- if or (gt .Values.replicaCount 1.0) (.Values.additionalPeers) }}
|
||
|
|
- port: 9094
|
||
|
|
targetPort: 9094
|
||
|
|
protocol: TCP
|
||
|
|
name: cluster-tcp
|
||
|
|
- port: 9094
|
||
|
|
targetPort: 9094
|
||
|
|
protocol: UDP
|
||
|
|
name: cluster-udp
|
||
|
|
{{- end }}
|
||
|
|
selector:
|
||
|
|
{{- include "alertmanager.selectorLabels" . | nindent 4 }}
|