apiVersion: apps/v1 kind: Deployment metadata: name: mosquitto spec: progressDeadlineSeconds: 600 replicas: 1 selector: matchLabels: app.kubernetes.io/instance: mosquitto app.kubernetes.io/name: mosquitto strategy: type: Recreate template: metadata: labels: app.kubernetes.io/instance: mosquitto app.kubernetes.io/name: mosquitto spec: containers: - image: eclipse-mosquitto:2.0.22-openssl imagePullPolicy: IfNotPresent command: ["/mosquitto/config/wait.sh"] livenessProbe: failureThreshold: 3 periodSeconds: 10 successThreshold: 1 tcpSocket: port: 8883 timeoutSeconds: 1 name: mosquitto env: - name: MQ_USERNAME value: netmaker - name: MQ_PASSWORD valueFrom: secretKeyRef: key: mq_password name: netmaker-secrets ports: - containerPort: 1883 name: mqtt protocol: TCP - containerPort: 8883 name: mqtt2 protocol: TCP readinessProbe: failureThreshold: 3 periodSeconds: 10 successThreshold: 1 tcpSocket: port: 8883 timeoutSeconds: 1 resources: {} startupProbe: failureThreshold: 30 periodSeconds: 5 successThreshold: 1 tcpSocket: port: 8883 timeoutSeconds: 1 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /mosquitto/config name: mosquitto-config - mountPath: /mosquitto/certs name: shared-certs - mountPath: /mosquitto/temp name: mosquitto-temp dnsPolicy: ClusterFirst restartPolicy: Always terminationGracePeriodSeconds: 30 volumes: - configMap: name: mosquitto-config defaultMode: 0755 name: mosquitto-config - name: mosquitto-temp emptyDir: - name: shared-certs persistentVolumeClaim: claimName: shared-certs-pvc