packed and ready to go
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
FROM debian:buster-slim
|
||||
|
||||
RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
||||
#RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
mosquitto mosquitto-clients && \
|
||||
|
||||
@@ -37,16 +37,16 @@ spec:
|
||||
- containerPort: 1883
|
||||
name: mqtt
|
||||
protocol: TCP
|
||||
- containerPort: 9090
|
||||
name: websocket
|
||||
protocol: TCP
|
||||
#- containerPort: 9090
|
||||
# name: websocket
|
||||
# protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 3
|
||||
successThreshold: 1
|
||||
tcpSocket:
|
||||
port: 9090
|
||||
port: 1883
|
||||
timeoutSeconds: 1
|
||||
resources:
|
||||
limits:
|
||||
@@ -140,9 +140,9 @@ metadata:
|
||||
data:
|
||||
mosquitto.conf: |-
|
||||
log_dest stdout
|
||||
listener 1883
|
||||
port 1883
|
||||
#listener 9090
|
||||
protocol websockets
|
||||
#protocol websockets
|
||||
persistence true
|
||||
persistence_location /mosquitto/data
|
||||
|
||||
Reference in New Issue
Block a user