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

Commit

Permalink
Merge pull request #4 from dpshekhawat/workload
Browse files Browse the repository at this point in the history
Kubernetes manifests
  • Loading branch information
pkliczewski authored Sep 4, 2022
2 parents 64e6af4 + b9ff1c9 commit bff9d6e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
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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

0 comments on commit bff9d6e

Please sign in to comment.