add homeassistant
This commit is contained in:
1 parent
b045e93985
commit
4bcbf57049
8 files changed
+429
No files matched your search
@@ -0,0 +1,94 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: zigbee2mqtt-configmap
|
||||
data:
|
||||
TZ: Europe/Berlin
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: zigbee2mqtt-deployment
|
||||
labels:
|
||||
app: zigbee2mqtt
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: zigbee2mqtt
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: zigbee2mqtt
|
||||
spec:
|
||||
containers:
|
||||
- name: zigbee2mqtt
|
||||
image: ghcr.io/koenkk/zigbee2mqtt
|
||||
securityContext:
|
||||
privileged: true
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: zigbee2mqtt-configmap
|
||||
volumeMounts:
|
||||
- name: zigbee2mqtt-volume
|
||||
mountPath: /app/data
|
||||
- name: zigbee-config
|
||||
mountPath: /app/data/configuration.yaml
|
||||
- name: stick
|
||||
mountPath: /dev/serial/by-id
|
||||
ports:
|
||||
- name: 2mqtt-frontend
|
||||
containerPort: 8080
|
||||
- name: 2mqtt-mqtt
|
||||
containerPort: 1883
|
||||
volumes:
|
||||
- name: zigbee2mqtt-volume
|
||||
hostPath:
|
||||
path: /root/kubernetes/homeassistant/data/zigbee2mqtt
|
||||
type: DirectoryOrCreate
|
||||
- name: zigbee-config
|
||||
hostPath:
|
||||
path: /root/kubernetes/homeassistant/data/configuration2mqtt.yaml
|
||||
type: File
|
||||
- name: stick
|
||||
hostPath:
|
||||
path: /dev/serial/by-id
|
||||
type: Directory
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: zigbee2mqtt-service
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: zigbee2mqtt
|
||||
ports:
|
||||
- name: zigbee2mqtt-frontend
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
nodePort: 30080
|
||||
- name: zigbee2mqtt-mqtt
|
||||
protocol: TCP
|
||||
port: 1883
|
||||
targetPort: 1883
|
||||
nodePort: 30081
|
||||
---
|
||||
# apiVersion: networking.k8s.io/v1
|
||||
# kind: Ingress
|
||||
# metadata:
|
||||
# name: zigbee2mqtt-ingress
|
||||
# spec:
|
||||
# ingressClassName: "traefik"
|
||||
# rules:
|
||||
# - host: test.tap-tap.win
|
||||
# http:
|
||||
# paths:
|
||||
# - path: /
|
||||
# pathType: Prefix
|
||||
# backend:
|
||||
# service:
|
||||
# name: zigbee2mqtt-service
|
||||
# port:
|
||||
# number: 80
|
||||
Reference in new issue
Block a user