k8s_motioneye/motioneye_deployment.yml

58 lines
1.3 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: motioneye
labels:
app: motioneye
spec:
replicas: 1
selector:
matchLabels:
app: motioneye
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: motioneye
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
containers:
- name: motioneye
image: ccrisan/motioneye:master-armhf
env:
- name: TZ
value: "EST5EDT"
ports:
- containerPort: 8081
- containerPort: 8082
- containerPort: 8765
volumeMounts:
- name: motioneye-etc
mountPath: /etc/motioneye
- name: motioneye-var-lib
mountPath: /var/lib/motioneye
- name: tz-config
mountPath: /etc/localtime
volumes:
- name: motioneye-etc
persistentVolumeClaim:
claimName: motioneye-etc-pvc
- name: motioneye-var-lib
persistentVolumeClaim:
claimName: motioneye-var-lib-pvc
- name: tz-config
hostPath:
path: /usr/share/zoneinfo/EST5EDT
# EOF