From bb6c9af8da314cda7a4e5536c630e6069ef2ea22 Mon Sep 17 00:00:00 2001 From: Adarsh Verma <113962919+Adarsh-verma-14@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:47:50 +0530 Subject: [PATCH] add disable-compression arg for both operator and metrics-server (#554) Signed-off-by: Adarsh-verma-14 --- keda/templates/manager/deployment.yaml | 1 + keda/templates/metrics-server/deployment.yaml | 1 + keda/values.yaml | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/keda/templates/manager/deployment.yaml b/keda/templates/manager/deployment.yaml index fbfd3040..d818aaf1 100644 --- a/keda/templates/manager/deployment.yaml +++ b/keda/templates/manager/deployment.yaml @@ -81,6 +81,7 @@ spec: - "/keda" args: - "--leader-elect" + - "--disable-compression={{ .Values.operator.disableCompression}}" - "--zap-log-level={{ .Values.logging.operator.level }}" - "--zap-encoder={{ .Values.logging.operator.format }}" - "--zap-time-encoding={{ .Values.logging.operator.timeEncoding }}" diff --git a/keda/templates/metrics-server/deployment.yaml b/keda/templates/metrics-server/deployment.yaml index d621e0b8..16829cc6 100644 --- a/keda/templates/metrics-server/deployment.yaml +++ b/keda/templates/metrics-server/deployment.yaml @@ -128,6 +128,7 @@ spec: - --secure-port={{ .Values.service.portHttpsTarget }} - --logtostderr=true - --stderrthreshold={{ .Values.logging.metricServer.stderrthreshold }} + - --disable-compression={{ .Values.metricsServer.disableCompression}} - --metrics-service-address={{ .Values.operator.name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:9666 - --client-ca-file={{ .Values.certificates.mountPath }}/ca.crt - --tls-cert-file={{ .Values.certificates.mountPath }}/tls.crt diff --git a/keda/values.yaml b/keda/values.yaml index ea8486ef..feead77f 100644 --- a/keda/values.yaml +++ b/keda/values.yaml @@ -55,6 +55,9 @@ operator: # You can run multiple replicas, but they will not improve the performance of KEDA, it could only reduce downtime during a failover. # Learn more in [our documentation](https://keda.sh/docs/latest/operate/cluster/#high-availability). replicaCount: 1 + # --Disable response compression for k8s restAPI in client-go. + # Disabling compression simply means that turns off the process of making data smaller for K8s restAPI in client-go for faster transmission. + disableCompression: true # -- [Affinity] for pod scheduling for KEDA operator. Takes precedence over the `affinity` field affinity: {} # podAntiAffinity: @@ -89,6 +92,9 @@ metricsServer: # You can run multiple replicas, but they will not improve the performance of KEDA, it could only reduce downtime during a failover. # Learn more in [our documentation](https://keda.sh/docs/latest/operate/cluster/#high-availability). replicaCount: 1 + # --Disable response compression for k8s restAPI in client-go. + # Disabling compression simply means that turns off the process of making data smaller for K8s restAPI in client-go for faster transmission. + disableCompression: true # use ClusterFirstWithHostNet if `useHostNetwork: true` https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy # -- Defined the DNS policy for the metric server dnsPolicy: ClusterFirst