Skip to content

Commit

Permalink
Added headless services
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jan 28, 2022
1 parent 376591c commit b16b9d1
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/soketi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.12.3
version: 0.13.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/soketi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Install the soketi chart:
```bash
$ helm upgrade soketi \
--install \
--version=0.12.3 \
--version=0.13.0 \
soketi/soketi
```

Expand Down
17 changes: 17 additions & 0 deletions charts/soketi/templates/bullmq-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,21 @@ spec:
name: bull-metrics
selector:
{{- include "soketi.bullExporterSelectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "soketi.fullname" . }}-bullmq-exporter-headless
labels:
{{- include "soketi.bullExporterLabels" . | nindent 4 }}
spec:
type: ClusterIP
clusterIP: None
ports:
- port: {{ .Values.service.port }}
targetPort: 6001
protocol: TCP
name: soketi
selector:
{{- include "soketi.bullExporterSelectorLabels" . | nindent 4 }}
{{- end }}
17 changes: 17 additions & 0 deletions charts/soketi/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,20 @@ spec:
{{- if .Values.networkWatcher.enabled }}
ws.soketi.app/accepts-new-connections: "yes"
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "soketi.fullname" . }}-headless
labels:
{{- include "soketi.labels" . | nindent 4 }}
spec:
type: ClusterIP
clusterIP: None
ports:
- port: {{ .Values.service.port }}
targetPort: 6001
protocol: TCP
name: soketi
selector:
{{- include "soketi.selectorLabels" . | nindent 4 }}

0 comments on commit b16b9d1

Please sign in to comment.