From ece43043061732df88d70a2f144e1253a140f545 Mon Sep 17 00:00:00 2001 From: brb Date: Tue, 22 Aug 2023 16:05:46 +0200 Subject: [PATCH] added argocd manifests --- argo/configmap.yaml | 8 ++++++++ argo/deployment.yaml | 37 +++++++++++++++++++++++++++++++++++++ argo/namespace.yaml | 4 ++++ 3 files changed, 49 insertions(+) create mode 100644 argo/configmap.yaml create mode 100644 argo/deployment.yaml create mode 100644 argo/namespace.yaml diff --git a/argo/configmap.yaml b/argo/configmap.yaml new file mode 100644 index 0000000..2799782 --- /dev/null +++ b/argo/configmap.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: app-config + namespace: bandwidth-probing +data: + USER_ID: "1" + SCHEDULE: "05 * * * *" \ No newline at end of file diff --git a/argo/deployment.yaml b/argo/deployment.yaml new file mode 100644 index 0000000..fee22b8 --- /dev/null +++ b/argo/deployment.yaml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: bandwidth-probing + namespace: bandwidth-probing + labels: + environment: live + app: bandwidth-probing +spec: + replicas: 1 + selector: + matchLabels: + app: bandwidth-probing + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app: bandwidth-probing + spec: + containers: + - envFrom: + - configMapRef: + name: app-config + image: '192.168.1.2:5000/brian/bandwidth_probing:v1.3.2' + imagePullPolicy: Always + name: bandwidth-probing + resources: + limits: + cpu: 500m + memory: 256Mi + requests: + cpu: 50m + memory: 64Mi \ No newline at end of file diff --git a/argo/namespace.yaml b/argo/namespace.yaml new file mode 100644 index 0000000..dff86bc --- /dev/null +++ b/argo/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: bandwidth-probing \ No newline at end of file