apiVersion: v1 kind: Pod metadata: annotations: io.kubernetes.cri-o.TTY/mqtt: "false" io.podman.annotations.autoremove/mqtt: "FALSE" io.podman.annotations.init/mqtt: "FALSE" io.podman.annotations.label/mqtt: type:container_runtime_t io.podman.annotations.privileged/mqtt: "FALSE" io.podman.annotations.publish-all/mqtt: "FALSE" labels: app: mqtt-pod name: mqtt-pod spec: containers: - name: mosquitto image: docker.io/library/eclipse-mosquitto:latest env: - name: TZ value: Europe/Zurich ports: - containerPort: 1883 hostPort: 9080 resources: {} securityContext: capabilities: drop: - CAP_MKNOD - CAP_NET_RAW - CAP_AUDIT_WRITE volumeMounts: - mountPath: /mosquitto/config name: mosquittoconfig - mountPath: /mosquitto/data name: mosquittodata - mountPath: /mosquitto/log name: mosquittolog - name: mqtt2log image: git.nbit.ch/drpuur/mqtt2log:2024101902 env: - name: TZ value: Europe/Zurich resources: {} securityContext: capabilities: drop: - CAP_MKNOD - CAP_NET_RAW - CAP_AUDIT_WRITE volumeMounts: - mountPath: /data name: datashellies - name: mqtt2prometheus command: ["/mqtt2prometheus"] args: ["-listen-port","9641","-log-level","warn"] image: ghcr.io/hikhvar/mqtt2prometheus:latest env: - name: TZ value: Europe/Zurich ports: - containerPort: 9641 hostPort: 9081 resources: {} securityContext: capabilities: drop: - CAP_MKNOD - CAP_NET_RAW - CAP_AUDIT_WRITE volumeMounts: - mountPath: /config.yaml name: mqtt2prometheusconfig - name: mqtt2prometheustasmota command: ["/mqtt2prometheus"] args: ["-listen-port","9642","-log-level","warn"] image: ghcr.io/hikhvar/mqtt2prometheus:latest env: - name: TZ value: Europe/Zurich ports: - containerPort: 9642 hostPort: 9082 resources: {} securityContext: capabilities: drop: - CAP_MKNOD - CAP_NET_RAW - CAP_AUDIT_WRITE volumeMounts: - mountPath: /config.yaml name: tasmotamqtt2prometheusconfig - name: prometheus image: registry.hub.docker.com/prom/prometheus:latest env: - name: TZ value: Europe/Zurich resources: {} securityContext: capabilities: drop: - CAP_MKNOD - CAP_NET_RAW - CAP_AUDIT_WRITE volumeMounts: - mountPath: /etc/prometheus/prometheus.yml name: prometheusconfig restartPolicy: Always volumes: - hostPath: path: /data/mqtt/data type: Directory name: mosquittodata - hostPath: path: /data/mqtt/config type: Directory name: mosquittoconfig - hostPath: path: /data/mqtt/log type: Directory name: mosquittolog - hostPath: path: /data/mqtt/data-shellies type: Directory name: datashellies - hostPath: path: /data/mqtt/config/mqtt2prometheus-config.yaml type: File name: mqtt2prometheusconfig - hostPath: path: /data/mqtt/config/tasmotamqtt2prometheus-config.yaml type: File name: tasmotamqtt2prometheusconfig - hostPath: path: /data/mqtt/config/prometheus.yml type: File name: prometheusconfig