initial checkin
This commit is contained in:
commit
e867165f7c
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue