k8s_motioneye/motioneye_deployment.yml

58 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2021-07-23 15:58:34 -04:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: motioneye
labels:
app: motioneye
spec:
replicas: 1
selector:
matchLabels:
app: motioneye
strategy:
type: RollingUpdate
2021-07-23 15:58:34 -04:00
template:
metadata:
labels:
app: motioneye
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
2021-12-27 15:12:37 -05:00
- key: kubernetes.io/arch
2021-07-23 15:58:34 -04:00
operator: In
values:
2022-11-20 20:41:55 -05:00
- arm64
2021-07-23 15:58:34 -04:00
containers:
- name: motioneye
2022-11-20 20:41:55 -05:00
image: ccrisan/motioneye:master-armhf
2021-07-23 15:58:34 -04:00
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