97 lines
2.4 KiB
YAML
97 lines
2.4 KiB
YAML
|
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
|
||
|
- cp /configs/ledvanceA60S.js /data/;
|
||
|
image: alpine:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: copy
|
||
|
volumeMounts:
|
||
|
- mountPath: /data
|
||
|
name: data
|
||
|
- mountPath: /configs/
|
||
|
name: zigbee2mqtt-settings
|
||
|
containers:
|
||
|
- env:
|
||
|
- name: ZIGBEE2MQTT_DATA
|
||
|
value: /data
|
||
|
image: koenkk/zigbee2mqtt:1.35.2
|
||
|
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
|
||
|
|