mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 15:39:02 +00:00
[Mosquitto] Update Mosquitto to support configurable ports (#475)
Co-authored-by: Michael Goldstein <michael.goldstein@digitalreasoning.com>
This commit is contained in:
parent
ebd7aa6f0c
commit
27b095e12d
@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: "1.6.12"
|
||||
description: Eclipse Mosquitto - An open source MQTT broker
|
||||
name: mosquitto
|
||||
version: 0.5.0
|
||||
version: 0.6.0
|
||||
keywords:
|
||||
- message queue
|
||||
- MQTT
|
||||
|
@ -1,6 +1,6 @@
|
||||
** Please be patient while the chart is being deployed **
|
||||
|
||||
Mosquitto can be accessed within the cluster on port 1883 at {{ template "mosquitto.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
|
||||
Mosquitto can be accessed within the cluster on port {{ .Values.service.port }} at {{ template "mosquitto.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
|
||||
|
||||
To access for outside the cluster, perform the following steps:
|
||||
|
||||
@ -26,13 +26,13 @@ NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
||||
|
||||
To Access the Moquitto port:
|
||||
|
||||
echo "URL : mqtt://$SERVICE_IP:1883/"
|
||||
echo "URL : mqtt://$SERVICE_IP:{{ .Values.service.port }}/"
|
||||
|
||||
{{- else if contains "ClusterIP" .Values.service.type }}
|
||||
|
||||
To Access the Mosquitto MQTT port:
|
||||
|
||||
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mosquitto.fullname" . }} 1883:1883
|
||||
echo "URL : mqtt://127.0.0.1:1883/"
|
||||
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mosquitto.fullname" . }} {{ .Values.service.port }}:{{ .Values.service.port }}
|
||||
echo "URL : mqtt://127.0.0.1:{{ .Values.service.port }}/"
|
||||
|
||||
{{- end }}
|
||||
|
@ -17,11 +17,11 @@ spec:
|
||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- port: 1883
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: default
|
||||
protocol: TCP
|
||||
name: default
|
||||
- port: 9001
|
||||
- port: {{ .Values.service.websocketPort }}
|
||||
targetPort: websocket
|
||||
protocol: TCP
|
||||
name: websocket
|
||||
|
@ -34,6 +34,8 @@ securityContext: {}
|
||||
service:
|
||||
annotations: {}
|
||||
type: ClusterIP
|
||||
port: 1883
|
||||
websocketPort: 9001
|
||||
# externalTrafficPolicy:
|
||||
# loadBalancerIP:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user