22 lines
537 B
YAML
22 lines
537 B
YAML
|
{{- $functionNs := default .Release.Namespace .Values.functionNamespace }}
|
||
|
{{- if .Values.alertmanager.create }}
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: {{ template "openfaas.name" . }}
|
||
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||
|
component: alertmanager
|
||
|
heritage: {{ .Release.Service }}
|
||
|
release: {{ .Release.Name }}
|
||
|
name: alertmanager
|
||
|
namespace: {{ .Release.Namespace | quote }}
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- port: 9093
|
||
|
protocol: TCP
|
||
|
selector:
|
||
|
app: alertmanager
|
||
|
{{- end }}
|