Skip to content

Commit

Permalink
Update KEDA resources with a patch after deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer committed Oct 30, 2023
1 parent 2329265 commit 73c7508
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ deploy-keda:
mkdir -p deps
git clone https://github.com/kedacore/keda deps/keda --depth 1
VERSION=$(KEDA_VERSION) make -C deps/keda deploy
# update resources to 2CPU & 2Gi
kubectl patch deploy keda-operator -n keda --type json -p="[ \
{'op': 'replace', 'path': '/spec/template/spec/containers/0/resources/requests/memory', 'value':'2Gi'}, \
{'op': 'replace', 'path': '/spec/template/spec/containers/0/resources/limits/memory', 'value':'2Gi'}, \
{'op': 'replace', 'path': '/spec/template/spec/containers/0/resources/requests/cpu', 'value':'1'}, \
{'op': 'replace', 'path': '/spec/template/spec/containers/0/resources/limits/cpu', 'value':'1'}, \
]"

undeploy-keda:
VERSION=$(KEDA_VERSION) make -C deps/keda undeploy
Expand Down

0 comments on commit 73c7508

Please sign in to comment.