From f3f8797546dd1e9ed765e6324f0ae9ae69bd9956 Mon Sep 17 00:00:00 2001 From: Aviram Hassan Date: Sun, 3 Nov 2024 18:04:21 +0200 Subject: [PATCH] should be okay now --- base/ip-visit-counter.yaml | 6 +----- overlays/gke/kustomization.yaml | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/base/ip-visit-counter.yaml b/base/ip-visit-counter.yaml index 732695b..4794bfc 100644 --- a/base/ip-visit-counter.yaml +++ b/base/ip-visit-counter.yaml @@ -27,7 +27,7 @@ spec: spec: containers: - name: main - image: ghcr.io/metalbear-co/playground-ip-visit-counter:latest + image: ghcr.io/metalbear-co/playground-ip-visit-counter:e2432eb319787b91f9a324da9145af3230015606 resources: requests: cpu: 100m @@ -62,10 +62,6 @@ spec: value: "ip-visit" - name: IPINFOADDRESS value: "http://ip-info" - - name: SQSQUEUENAME - value: "IpCount" - - name: AWS_DEFAULT_REGION - value: "eu-north-1" - name: AWS_ACCESS_KEY_ID valueFrom: secretKeyRef: diff --git a/overlays/gke/kustomization.yaml b/overlays/gke/kustomization.yaml index 1c7046d..0b7df1b 100644 --- a/overlays/gke/kustomization.yaml +++ b/overlays/gke/kustomization.yaml @@ -7,4 +7,20 @@ resources: - secret.yaml - ip-visit-frontend.yaml - ip-visit-sqs-consumer.yaml - - sqs-queueregistry.yaml \ No newline at end of file + - sqs-queueregistry.yaml + +patches: +- patch: |- + - op: add + path: "/spec/template/spec/containers/0/env/-" + value: + name: SQSQUEUENAME + value: "IpCount" + - op: add + path: "/spec/template/spec/containers/0/env/-" + value: + name: AWS_DEFAULT_REGION + value: "eu-north-1" + target: + kind: Deployment + name: ip-visit-counter \ No newline at end of file