GHP publish
This commit is contained in:
22
openfaas/templates/prometheus-svc.yaml
Normal file
22
openfaas/templates/prometheus-svc.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
{{- $functionNs := default .Release.Namespace .Values.functionNamespace }}
|
||||
{{- if .Values.prometheus.create }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "openfaas.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||
component: prometheus
|
||||
heritage: {{ .Release.Service }}
|
||||
release: {{ .Release.Name }}
|
||||
name: prometheus
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9090
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: prometheus
|
||||
{{- end }}
|
Reference in New Issue
Block a user