2023-11-14 15:50:00 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: zigbee2mqtt
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
app.kubernetes.io/name: zigbee2mqtt
|
|
|
|
app.kubernetes.io/version: 1.19.1
|
|
|
|
helm.sh/chart: zigbee2mqtt-9.4.2
|
|
|
|
name: zigbee2mqtt
|
|
|
|
namespace: zigbee2mqtt
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 8080
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: http
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/instance: zigbee2mqtt
|
|
|
|
app.kubernetes.io/name: zigbee2mqtt
|
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: zigbee2mqtt
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
app.kubernetes.io/name: zigbee2mqtt
|
|
|
|
app.kubernetes.io/version: 1.19.1
|
|
|
|
helm.sh/chart: zigbee2mqtt-9.4.2
|
|
|
|
annotations:
|
|
|
|
configmap.reloader.stakater.com/reload: "zigbee2mqtt-settings"
|
|
|
|
name: zigbee2mqtt
|
|
|
|
namespace: zigbee2mqtt
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/instance: zigbee2mqtt
|
|
|
|
app.kubernetes.io/name: zigbee2mqtt
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: zigbee2mqtt
|
|
|
|
app.kubernetes.io/name: zigbee2mqtt
|
|
|
|
spec:
|
|
|
|
automountServiceAccountToken: true
|
|
|
|
initContainers:
|
|
|
|
- command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
2023-11-14 15:56:11 +00:00
|
|
|
- cp /configs/configuration.yaml /data/;
|
2023-11-14 17:20:27 +00:00
|
|
|
- cp /configs/ledvanceA60S.js /data/;
|
2023-11-14 15:50:00 +00:00
|
|
|
image: alpine:latest
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
name: copy
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /data
|
|
|
|
name: data
|
|
|
|
- mountPath: /configs/
|
|
|
|
name: zigbee2mqtt-settings
|
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: ZIGBEE2MQTT_DATA
|
|
|
|
value: /data
|
2024-02-02 19:37:07 +00:00
|
|
|
image: koenkk/zigbee2mqtt:1.35.2
|
2023-11-14 15:50:00 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
livenessProbe:
|
|
|
|
failureThreshold: 3
|
|
|
|
initialDelaySeconds: 0
|
|
|
|
periodSeconds: 10
|
|
|
|
tcpSocket:
|
|
|
|
port: 8080
|
|
|
|
timeoutSeconds: 1
|
|
|
|
name: zigbee2mqtt
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: http
|
|
|
|
protocol: TCP
|
|
|
|
readinessProbe:
|
|
|
|
failureThreshold: 3
|
|
|
|
initialDelaySeconds: 0
|
|
|
|
periodSeconds: 10
|
|
|
|
tcpSocket:
|
|
|
|
port: 8080
|
|
|
|
timeoutSeconds: 1
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
|
|
|
- SYS_ADMIN
|
|
|
|
privileged: true
|
|
|
|
startupProbe:
|
|
|
|
failureThreshold: 30
|
|
|
|
initialDelaySeconds: 0
|
|
|
|
periodSeconds: 5
|
|
|
|
tcpSocket:
|
|
|
|
port: 8080
|
|
|
|
timeoutSeconds: 1
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /data
|
|
|
|
name: data
|
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
|
|
enableServiceLinks: true
|
|
|
|
hostNetwork: true
|
|
|
|
serviceAccountName: default
|
|
|
|
volumes:
|
|
|
|
- configMap:
|
|
|
|
name: zigbee2mqtt-settings
|
|
|
|
name: zigbee2mqtt-settings
|
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: zigbee2mqtt
|
2023-11-14 17:20:27 +00:00
|
|
|
|