35 lines
727 B
YAML
35 lines
727 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: mosquitto
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: mosquitto
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: mosquitto
|
||
|
spec:
|
||
|
volumes:
|
||
|
- name: config
|
||
|
configMap:
|
||
|
name: mosquitto
|
||
|
- name: data
|
||
|
hostPath:
|
||
|
path: /data/home-assistant/mqtt
|
||
|
containers:
|
||
|
- name: mosquitto
|
||
|
image: mosquitto
|
||
|
resources:
|
||
|
limits:
|
||
|
memory: "128Mi"
|
||
|
cpu: "500m"
|
||
|
ports:
|
||
|
- containerPort: 1883
|
||
|
name: mqtt
|
||
|
volumeMounts:
|
||
|
- mountPath: /data
|
||
|
name: data
|
||
|
- mountPath: /mosquitto/config
|
||
|
name: config
|