add homeassistant
This commit is contained in:
1 parent
b045e93985
commit
4bcbf57049
8 files changed
+429
No files matched your search
@@ -0,0 +1,45 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mosquitto-deployment
|
||||
labels:
|
||||
app: mosquitto
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mosquitto
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mosquitto
|
||||
spec:
|
||||
containers:
|
||||
- name: mosquitto
|
||||
image: eclipse-mosquitto
|
||||
volumeMounts:
|
||||
- name: mosquitto-volume
|
||||
mountPath: /mosquitto
|
||||
- name: mosquitto-config
|
||||
mountPath: /mosquitto/config/mosquitto.conf
|
||||
volumes:
|
||||
- name: mosquitto-volume
|
||||
hostPath:
|
||||
path: /root/kubernetes/homeassistant/data/mosquitto
|
||||
type: DirectoryOrCreate
|
||||
- name: mosquitto-config
|
||||
hostPath:
|
||||
path: /root/kubernetes/homeassistant/data/mosquitto.conf
|
||||
type: File
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mosquitto-service
|
||||
spec:
|
||||
selector:
|
||||
app: mosquitto
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 1883
|
||||
targetPort: 1883
|
||||
Reference in new issue
Block a user