61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mosquitto
|
|
labels:
|
|
app: mosquitto
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: mosquitto
|
|
strategy:
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mosquitto
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- arm64
|
|
containers:
|
|
- name: mosquitto
|
|
image: eclipse-mosquitto:latest
|
|
env:
|
|
- name: TZ
|
|
value: "EST5EDT"
|
|
- name: PUID
|
|
value: "65534"
|
|
- name: PgID
|
|
value: "65534"
|
|
ports:
|
|
- containerPort: 1883
|
|
- containerPort: 9001
|
|
volumeMounts:
|
|
- name : mqtt-data
|
|
mountPath: /mosquitto/data
|
|
- name : mqtt-log
|
|
mountPath: /mosquitto/log
|
|
- name: mqtt-config
|
|
mountPath: /mosquitto/config
|
|
volumes:
|
|
- name: mqtt-data
|
|
persistentVolumeClaim:
|
|
claimName: mqtt-data-pvc
|
|
- name: mqtt-log
|
|
persistentVolumeClaim:
|
|
claimName: mqtt-log-pvc
|
|
- name: mqtt-config
|
|
persistentVolumeClaim:
|
|
claimName: mqtt-config-pvc
|
|
|
|
# EOF
|