mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-11-27 03:40:54 +00:00
39 lines
803 B
YAML
39 lines
803 B
YAML
{{- if .Values.nats.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "monitoring-platform.fullname" . }}-nats
|
|
labels:
|
|
{{- include "monitoring-platform.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: nats
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 4222
|
|
targetPort: client
|
|
protocol: TCP
|
|
name: client
|
|
{{- if .Values.nats.websocket.enabled }}
|
|
- port: 8080
|
|
targetPort: websocket
|
|
protocol: TCP
|
|
name: websocket
|
|
{{- end }}
|
|
- port: 8222
|
|
targetPort: monitor
|
|
protocol: TCP
|
|
name: monitor
|
|
- port: 6222
|
|
targetPort: cluster
|
|
protocol: TCP
|
|
name: cluster
|
|
selector:
|
|
{{- include "monitoring-platform.selectorLabels" . | nindent 4 }}
|
|
app.kubernetes.io/component: nats
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
|