Skip to content

Commit

Permalink
Merge pull request #12 from metalbear-co/kubeconagain
Browse files Browse the repository at this point in the history
fixes for new overlays
  • Loading branch information
aviramha authored Nov 3, 2024
2 parents e2432eb + f3f8797 commit ea67226
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 1 addition & 5 deletions base/ip-visit-counter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
18 changes: 17 additions & 1 deletion overlays/gke/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,20 @@ resources:
- secret.yaml
- ip-visit-frontend.yaml
- ip-visit-sqs-consumer.yaml
- sqs-queueregistry.yaml
- 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

0 comments on commit ea67226

Please sign in to comment.