dockerizn
This commit is contained in:
@@ -12,8 +12,8 @@ EXPOSE 1883
|
|||||||
# Stats port
|
# Stats port
|
||||||
#EXPOSE 9090
|
#EXPOSE 9090
|
||||||
|
|
||||||
ADD docker-entrypoint.sh /usr/bin/
|
ADD docker-entrypoint.sh /
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["/usr/sbin/mosquitto", "-c", "/mosquitto/config/mosquitto.conf"]
|
CMD ["/usr/sbin/mosquitto", "-c", "/mosquitto/config/mosquitto.conf"]
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
periodSeconds: 1
|
periodSeconds: 1
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 9090
|
port: 1883
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 1883
|
- containerPort: 1883
|
||||||
@@ -50,11 +50,11 @@ spec:
|
|||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50m
|
cpu: 100m
|
||||||
memory: 24Mi
|
memory: 64Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 20m
|
cpu: 20m
|
||||||
memory: 10Mi
|
memory: 24Mi
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -139,7 +139,7 @@ metadata:
|
|||||||
release: mqtt
|
release: mqtt
|
||||||
data:
|
data:
|
||||||
mosquitto.conf: |-
|
mosquitto.conf: |-
|
||||||
log_dest stdout
|
log_dest none
|
||||||
port 1883
|
port 1883
|
||||||
#listener 9090
|
#listener 9090
|
||||||
#protocol websockets
|
#protocol websockets
|
||||||
|
|||||||
0
apps/mosquitto/docker-entrypoint.sh
Normal file → Executable file
0
apps/mosquitto/docker-entrypoint.sh
Normal file → Executable file
Reference in New Issue
Block a user