GHP publish
This commit is contained in:
32
openfaas/templates/nats-svc.yaml
Normal file
32
openfaas/templates/nats-svc.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
{{- if and .Values.async (not .Values.nats.external.enabled) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "openfaas.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||
component: nats
|
||||
heritage: {{ .Release.Service }}
|
||||
release: {{ .Release.Name }}
|
||||
name: nats
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 4222
|
||||
protocol: TCP
|
||||
name: clients
|
||||
{{- if .Values.nats.enableMonitoring }}
|
||||
- port: 8222
|
||||
protocol: TCP
|
||||
name: monitoring
|
||||
{{- end }}
|
||||
{{- if .Values.nats.metrics.enabled }}
|
||||
- port: 7777
|
||||
protocol: TCP
|
||||
name: metrics
|
||||
{{- end }}
|
||||
selector:
|
||||
app: nats
|
||||
{{- end }}
|
Reference in New Issue
Block a user