From 8c93c9d41023fdcfb81fba5c7b1ae3e5acdff2e9 Mon Sep 17 00:00:00 2001 From: dpshekhawat Date: Sun, 4 Sep 2022 18:35:46 +0530 Subject: [PATCH] modified --- deployment/configmaps.yaml | 11 ++++++++++- deployment/edgeworkload.yaml | 4 ++++ deployment/secrets.yaml | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/deployment/configmaps.yaml b/deployment/configmaps.yaml index 80e1892..0b11304 100644 --- a/deployment/configmaps.yaml +++ b/deployment/configmaps.yaml @@ -1,10 +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: play.min.io + BUCKET_HOST: s3://flotta-ic-data-bucket BUCKET_NAME: flotta-ic-data-bucket BUCKET_PORT: "443" BUCKET_REGION: us-east-1 \ No newline at end of file diff --git a/deployment/edgeworkload.yaml b/deployment/edgeworkload.yaml index f57d3ca..f2f1ee1 100644 --- a/deployment/edgeworkload.yaml +++ b/deployment/edgeworkload.yaml @@ -19,6 +19,10 @@ 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 diff --git a/deployment/secrets.yaml b/deployment/secrets.yaml index 29ebdc4..4cf46ac 100644 --- a/deployment/secrets.yaml +++ b/deployment/secrets.yaml @@ -5,5 +5,5 @@ metadata: namespace: default type: Opaque data: - AWS_ACCESS_KEY_ID: Q3AM3UQ867SPQQA43P2F - AWS_SECRET_ACCESS_KEY: zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG \ No newline at end of file + AWS_ACCESS_KEY_ID: + AWS_SECRET_ACCESS_KEY: