Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Kubernetes manifests #4

Merged
merged 3 commits into from
Sep 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions deployment/configmaps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ic-config
data:
CAPTURE: "True"
THRES: "0.25"
TIMEINT: "5"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: s3config
namespace: default
data:
BUCKET_HOST: s3://flotta-ic-data-bucket
BUCKET_NAME: flotta-ic-data-bucket
BUCKET_PORT: "443"
BUCKET_REGION: us-east-1
12 changes: 12 additions & 0 deletions deployment/edgedevice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: management.project-flotta.io/v1alpha1
kind: EdgeDevice
metadata:
name: ic-edge-device
namespace: default
labels:
app: camera
spec:
storage:
s3:
configMapName: "s3config"
secretName: "s3secret"
37 changes: 37 additions & 0 deletions deployment/edgeworkload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: management.project-flotta.io/v1alpha1
kind: EdgeWorkload
metadata:
name: edge-ic-workload
namespace: default
annotations:
podman/run.oci.keep_original_groups: "1"
spec:
deviceSelector:
matchLabels:
app: camera
data:
egress:
- source: images
target: images
type: pod
pod:
spec:
containers:
- name: edge-ic-workload
image: quay.io/dpshekhawat/img-class:latest
envFrom:
- configMapRef:
name: ic-config
optional: false
volumeMounts:
- mountPath: /dev/video0
name: video
securityContext:
seLinuxOptions:
type: 'spc_t'
restartPolicy: Always
volumes:
- name: video
hostPath:
path: /dev/video0
type: File
9 changes: 9 additions & 0 deletions deployment/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: s3secret
namespace: default
type: Opaque
data:
AWS_ACCESS_KEY_ID: AKIA4R4BVJOFS2SNMTSM
AWS_SECRET_ACCESS_KEY: 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