Skip to content

Commit

Permalink
Parametrized mosquitto-broker resource usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Fynardo committed Nov 22, 2024
1 parent 18c485c commit bf34f2d
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions deploy/mosquitto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ objects:
protocol: TCP
resources:
limits:
cpu: '1'
memory: 1Gi
cpu: ${MQTT_BROKER_CPU_LIMIT}
memory: ${MQTT_BROKER_MEMORY_LIMIT}
requests:
cpu: 500m
memory: 512Mi
cpu: ${MQTT_BROKER_CPU_REQUEST}
memory: ${MQTT_BROKER_MEMORY_REQUEST}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
Expand Down Expand Up @@ -117,3 +117,22 @@ objects:
pod: mosquitto-broker
sessionAffinity: None
type: ClusterIP


parameters:
- description: Initial amount of memory the mosquito-broker will request.
displayName: Memory Request
name: MQTT_BROKER_MEMORY_REQUEST
value: 512Mi
- description: Maximum amount of memory the mosquito-broker can use.
displayName: Memory Limit
name: MQTT_BROKER_MEMORY_LIMIT
value: 1Gi
- description: Initial amount of cpu the mosquito-broker will request.
displayName: CPU Request
name: MQTT_BROKER_CPU_REQUEST
value: 500m
- description: Maximum amount of cpu the mosquito-broker can use.
displayName: CPU Limit
name: MQTT_BROKER_CPU_LIMIT
value: '1'

0 comments on commit bf34f2d

Please sign in to comment.