mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +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"
|
appVersion: "1.6.12"
|
||||||
description: Eclipse Mosquitto - An open source MQTT broker
|
description: Eclipse Mosquitto - An open source MQTT broker
|
||||||
name: mosquitto
|
name: mosquitto
|
||||||
version: 0.5.0
|
version: 0.6.0
|
||||||
keywords:
|
keywords:
|
||||||
- message queue
|
- message queue
|
||||||
- MQTT
|
- MQTT
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
** Please be patient while the chart is being deployed **
|
** 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:
|
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:
|
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 }}
|
{{- else if contains "ClusterIP" .Values.service.type }}
|
||||||
|
|
||||||
To Access the Mosquitto MQTT port:
|
To Access the Mosquitto MQTT port:
|
||||||
|
|
||||||
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mosquitto.fullname" . }} 1883:1883
|
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mosquitto.fullname" . }} {{ .Values.service.port }}:{{ .Values.service.port }}
|
||||||
echo "URL : mqtt://127.0.0.1:1883/"
|
echo "URL : mqtt://127.0.0.1:{{ .Values.service.port }}/"
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -17,11 +17,11 @@ spec:
|
|||||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- port: 1883
|
- port: {{ .Values.service.port }}
|
||||||
targetPort: default
|
targetPort: default
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: default
|
name: default
|
||||||
- port: 9001
|
- port: {{ .Values.service.websocketPort }}
|
||||||
targetPort: websocket
|
targetPort: websocket
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: websocket
|
name: websocket
|
||||||
|
@ -34,6 +34,8 @@ securityContext: {}
|
|||||||
service:
|
service:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
port: 1883
|
||||||
|
websocketPort: 9001
|
||||||
# externalTrafficPolicy:
|
# externalTrafficPolicy:
|
||||||
# loadBalancerIP:
|
# loadBalancerIP:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user