From 90db9bb01cc05a72384af5faa1ee8fcea75024ef Mon Sep 17 00:00:00 2001 From: Ashok Siyani Date: Wed, 4 Dec 2024 13:23:52 +0000 Subject: [PATCH] update Reloader to v1.2.0 --- reloader/Makefile | 2 +- reloader/kube-system/deployment.yaml | 11 ++++++++++- reloader/kube-system/kustomization.yaml | 6 ------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/reloader/Makefile b/reloader/Makefile index 0a4dcae7..adbcbc9a 100644 --- a/reloader/Makefile +++ b/reloader/Makefile @@ -1,7 +1,7 @@ .DEFAULT_GOAL := get-upstream .PHONY: get-upstream -TAG=v1.1.0 +TAG=v1.2.0 get-upstream: curl -sL https://raw.githubusercontent.com/stakater/Reloader/${TAG}/deployments/kubernetes/manifests/deployment.yaml | grep -v namespace > kube-system/deployment.yaml diff --git a/reloader/kube-system/deployment.yaml b/reloader/kube-system/deployment.yaml index 4eaa620b..1b4c9d27 100644 --- a/reloader/kube-system/deployment.yaml +++ b/reloader/kube-system/deployment.yaml @@ -16,7 +16,7 @@ spec: app: reloader-reloader spec: containers: - - image: "ghcr.io/stakater/reloader:latest" + - image: "ghcr.io/stakater/reloader:v1.2.0" imagePullPolicy: IfNotPresent name: reloader-reloader env: @@ -24,10 +24,12 @@ spec: valueFrom: resourceFieldRef: resource: limits.cpu + divisor: '1' - name: GOMEMLIMIT valueFrom: resourceFieldRef: resource: limits.memory + divisor: '1' ports: - name: http containerPort: 9090 @@ -50,6 +52,13 @@ spec: successThreshold: 1 initialDelaySeconds: 10 securityContext: {} + resources: + limits: + cpu: "1" + memory: 512Mi + requests: + cpu: 10m + memory: 512Mi securityContext: runAsNonRoot: true runAsUser: 65534 diff --git a/reloader/kube-system/kustomization.yaml b/reloader/kube-system/kustomization.yaml index dc3db09c..9be3c532 100644 --- a/reloader/kube-system/kustomization.yaml +++ b/reloader/kube-system/kustomization.yaml @@ -8,9 +8,3 @@ resources: patchesStrategicMerge: - clusterrolebinding-patch.yaml - deployment-patch.yaml - -# should be removed once this issue is fixed in next version -# https://github.com/stakater/Reloader/issues/753 -images: - - name: ghcr.io/stakater/reloader - newTag: v1.1.0