mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-18 10:32:55 +02:00
Add cm
This commit is contained in:
+18
-18
@@ -45,6 +45,22 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
---
|
---
|
||||||
|
# ConfigMap for Mosquitto configuration
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: mosquitto-config
|
||||||
|
data:
|
||||||
|
mosquitto.conf: |
|
||||||
|
persistence true
|
||||||
|
persistence_location /mosquitto/data/
|
||||||
|
log_dest file /mosquitto/log/mosquitto.log
|
||||||
|
listener 1883
|
||||||
|
listener 8883
|
||||||
|
# If you need SSL/TLS for the MQTT broker, add appropriate configuration here
|
||||||
|
# certfile /mosquitto/config/cert.pem
|
||||||
|
# keyfile /mosquitto/config/key.pem
|
||||||
|
---
|
||||||
# Deployment for OwnTracks Recorder
|
# Deployment for OwnTracks Recorder
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -100,22 +116,6 @@ spec:
|
|||||||
targetPort: 8083
|
targetPort: 8083
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
---
|
---
|
||||||
# ConfigMap for Mosquitto configuration
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-config
|
|
||||||
data:
|
|
||||||
mosquitto.conf: |
|
|
||||||
persistence true
|
|
||||||
persistence_location /mosquitto/data/
|
|
||||||
log_dest file /mosquitto/log/mosquitto.log
|
|
||||||
listener 1883
|
|
||||||
listener 8883
|
|
||||||
# If you need SSL/TLS for the MQTT broker, add appropriate configuration here
|
|
||||||
# certfile /mosquitto/config/cert.pem
|
|
||||||
# keyfile /mosquitto/config/key.pem
|
|
||||||
|
|
||||||
# Deployment for Mosquitto
|
# Deployment for Mosquitto
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -144,7 +144,7 @@ spec:
|
|||||||
mountPath: /mosquitto/data
|
mountPath: /mosquitto/data
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: /mosquitto/log
|
mountPath: /mosquitto/log
|
||||||
- name: config
|
- name: config-volume
|
||||||
mountPath: /mosquitto/config
|
mountPath: /mosquitto/config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
@@ -153,7 +153,7 @@ spec:
|
|||||||
- name: logs
|
- name: logs
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mosquitto-logs-pvc
|
claimName: mosquitto-logs-pvc
|
||||||
- name: config
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: mosquitto-config
|
name: mosquitto-config
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user