initial checkin

This commit is contained in:
Radar231 2021-07-23 15:58:34 -04:00
commit e867165f7c
5 changed files with 186 additions and 0 deletions

57
motioneye_deployment.yml Normal file
View File

@ -0,0 +1,57 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: motioneye
labels:
app: motioneye
spec:
replicas: 1
selector:
matchLabels:
app: motioneye
strategy:
type: Recreate
template:
metadata:
labels:
app: motioneye
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.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

27
motioneye_metallb.yml Normal file
View File

@ -0,0 +1,27 @@
---
apiVersion: v1
kind: Service
metadata:
name: motioneye
annotations:
metallb.universe.tf/allow-shared-ip: share222
spec:
selector:
app: motioneye
type: LoadBalancer
# loadBalancerIP is optional. MetalLB will automatically allocate an IP
# from its pool if not specified. You can also specify one manually.
# loadBalancerIP: x.y.z.a
loadBalancerIP: 192.168.7.222
ports:
- name: port8081
protocol: TCP
port: 8081
- name: port8082
protocol: TCP
port: 8082
- name: port8765
protocol: TCP
port: 8765
# EOF

41
motioneye_pv.yml Normal file
View File

@ -0,0 +1,41 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: motioneye-etc-pv
labels:
name: motioneye-etc-pv
spec:
storageClassName: manual
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
mountOptions:
- hard
- nfsvers=4.0
nfs:
server: 192.168.7.11
path: "/volume1/k8s-storage/motioneye-etc"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: motioneye-var-lib-pv
labels:
name: motioneye-var-lib-pv
spec:
storageClassName: manual
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
mountOptions:
- hard
- nfsvers=4.0
nfs:
server: 192.168.7.11
path: "/volume1/k8s-storage/motioneye-var-lib"
# EOF

37
motioneye_pvc.yml Normal file
View File

@ -0,0 +1,37 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: motioneye-etc-pvc
labels:
app: motioneye
spec:
accessModes:
- ReadWriteOnce
storageClassName: "manual"
resources:
requests:
storage: 5Gi
selector:
matchLabels:
name: motioneye-etc-pv
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: motioneye-var-lib-pvc
labels:
app: motioneye
spec:
accessModes:
- ReadWriteOnce
storageClassName: "manual"
resources:
requests:
storage: 5Gi
selector:
matchLabels:
name: motioneye-var-lib-pv
# EOF

24
motioneye_svclb.yml Normal file
View File

@ -0,0 +1,24 @@
---
apiVersion: v1
kind: Service
metadata:
name: motioneye
spec:
selector:
app: motioneye
ports:
- protocol: TCP
port: 8081
name: port8081
targetPort: 8081
- protocol: TCP
port: 8082
name: port8082
targetPort: 8082
- protocol: TCP
port: 8765
name: port8765
targetPort: 8765
type: LoadBalancer
# EOF