diff --git a/charts/fission-all/Chart.yaml b/charts/fission-all/Chart.yaml index 29f9353..3965783 100644 --- a/charts/fission-all/Chart.yaml +++ b/charts/fission-all/Chart.yaml @@ -1,8 +1,9 @@ apiVersion: v2 name: fission-all -version: v1.20.1-rc3 -appVersion: v1.20.1-rc3 +version: v1.20.1 +appVersion: v1.20.1 description: Fission is a fast serverless framework for Kubernetes. +kubeVersion: ">=1.23.0-0" home: https://fission.io/ icon: https://fission.io/images/fission-logo-white.svg sources: diff --git a/charts/fission-all/templates/_helpers.tpl b/charts/fission-all/templates/_helpers.tpl index 7bc4389..b553b5a 100644 --- a/charts/fission-all/templates/_helpers.tpl +++ b/charts/fission-all/templates/_helpers.tpl @@ -103,6 +103,13 @@ This template generates the image name for the deployment depending on the value {{- end }} {{- end }} +{{- define "kube_client.envs" }} +- name: KUBE_CLIENT_QPS + value: "{{ .Values.kubernetesClientQPS }}" +- name: KUBE_CLIENT_BURST + value: "{{ .Values.kubernetesClientBurst }}" +{{- end}} + {{/* Define the svc's name */}} diff --git a/charts/fission-all/templates/buildermgr/deployment.yaml b/charts/fission-all/templates/buildermgr/deployment.yaml index aaafc06..ac7ba06 100644 --- a/charts/fission-all/templates/buildermgr/deployment.yaml +++ b/charts/fission-all/templates/buildermgr/deployment.yaml @@ -56,6 +56,7 @@ spec: - name: HELM_RELEASE_NAME value: {{ .Release.Name | quote }} {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- include "opentelemtry.envs" . | indent 8 }} {{- if .Values.builderPodSpec.enabled }} volumeMounts: diff --git a/charts/fission-all/templates/canary-config/deployment.yaml b/charts/fission-all/templates/canary-config/deployment.yaml index 8dc7e2e..e4972af 100644 --- a/charts/fission-all/templates/canary-config/deployment.yaml +++ b/charts/fission-all/templates/canary-config/deployment.yaml @@ -37,7 +37,8 @@ spec: value: {{ .Values.debugEnv | quote }} - name: PPROF_ENABLED value: {{ .Values.pprof.enabled | quote }} - {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} - name: POD_NAMESPACE valueFrom: fieldRef: diff --git a/charts/fission-all/templates/executor/deployment.yaml b/charts/fission-all/templates/executor/deployment.yaml index 6da414c..98a4b49 100644 --- a/charts/fission-all/templates/executor/deployment.yaml +++ b/charts/fission-all/templates/executor/deployment.yaml @@ -78,6 +78,7 @@ spec: value: {{ .Values.executor.serviceAccountCheck.interval | quote }} {{- end}} {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} - name: HELM_RELEASE_NAME value: {{ .Release.Name | quote }} {{- include "opentelemtry.envs" . | indent 8 }} diff --git a/charts/fission-all/templates/kubewatcher/deployment.yaml b/charts/fission-all/templates/kubewatcher/deployment.yaml index ce72860..e394c3d 100644 --- a/charts/fission-all/templates/kubewatcher/deployment.yaml +++ b/charts/fission-all/templates/kubewatcher/deployment.yaml @@ -29,7 +29,8 @@ spec: value: {{ .Values.debugEnv | quote }} - name: PPROF_ENABLED value: {{ .Values.pprof.enabled | quote }} - {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- include "opentelemtry.envs" . | indent 8 }} resources: {{- toYaml .Values.kubewatcher.resources | nindent 10 }} diff --git a/charts/fission-all/templates/mqt-keda/deployment.yaml b/charts/fission-all/templates/mqt-keda/deployment.yaml index 517b621..c8f0bbc 100644 --- a/charts/fission-all/templates/mqt-keda/deployment.yaml +++ b/charts/fission-all/templates/mqt-keda/deployment.yaml @@ -47,6 +47,7 @@ spec: - name: REDIS_IMAGE value: "{{ .Values.mqt_keda.connector_images.redis.image }}:{{ .Values.mqt_keda.connector_images.redis.tag }}" {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- include "opentelemtry.envs" . | indent 8 }} resources: {{- toYaml .Values.mqt_keda.resources | nindent 10 }} diff --git a/charts/fission-all/templates/pre-upgrade-checks/pre-upgrade-job.yaml b/charts/fission-all/templates/pre-upgrade-checks/pre-upgrade-job.yaml index 91bd2d7..87a3251 100644 --- a/charts/fission-all/templates/pre-upgrade-checks/pre-upgrade-job.yaml +++ b/charts/fission-all/templates/pre-upgrade-checks/pre-upgrade-job.yaml @@ -37,6 +37,7 @@ spec: command: [ "/pre-upgrade-checks" ] env: {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- if .Values.terminationMessagePath }} terminationMessagePath: {{ .Values.terminationMessagePath }} {{- end }} diff --git a/charts/fission-all/templates/router/deployment.yaml b/charts/fission-all/templates/router/deployment.yaml index c86dc0a..cbe9c5f 100644 --- a/charts/fission-all/templates/router/deployment.yaml +++ b/charts/fission-all/templates/router/deployment.yaml @@ -83,7 +83,8 @@ spec: value: {{ .Values.pprof.enabled | quote }} - name: DISPLAY_ACCESS_LOG value: {{ .Values.router.displayAccessLog | default false | quote }} - {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- include "opentelemtry.envs" . | indent 8 }} resources: {{- toYaml .Values.router.resources | nindent 10 }} diff --git a/charts/fission-all/templates/router/secret.yaml b/charts/fission-all/templates/router/secret.yaml index a952a9a..f0fa1a4 100644 --- a/charts/fission-all/templates/router/secret.yaml +++ b/charts/fission-all/templates/router/secret.yaml @@ -10,5 +10,5 @@ metadata: data: username: {{ .Values.authentication.authUsername | b64enc | quote }} password: {{ randAlphaNum 20 | b64enc | quote }} - jwtSigningKey: {{ .Values.authentication.jwtSigningKey | b64enc | quote }} + jwtSigningKey: {{ default (randAlphaNum 20) .Values.authentication.jwtSigningKey | b64enc | quote }} {{- end }} \ No newline at end of file diff --git a/charts/fission-all/templates/storagesvc/deployment.yaml b/charts/fission-all/templates/storagesvc/deployment.yaml index 66fcdb8..7152c89 100644 --- a/charts/fission-all/templates/storagesvc/deployment.yaml +++ b/charts/fission-all/templates/storagesvc/deployment.yaml @@ -61,6 +61,7 @@ spec: value: {{ .Values.persistence.s3.region }} {{- end }} {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- include "opentelemtry.envs" . | indent 8 }} resources: {{- toYaml .Values.storagesvc.resources | nindent 10 }} diff --git a/charts/fission-all/templates/timer/deployment.yaml b/charts/fission-all/templates/timer/deployment.yaml index 6331659..c4b093f 100644 --- a/charts/fission-all/templates/timer/deployment.yaml +++ b/charts/fission-all/templates/timer/deployment.yaml @@ -30,6 +30,7 @@ spec: - name: PPROF_ENABLED value: {{ .Values.pprof.enabled | quote }} {{- include "fission-resource-namespace.envs" . | indent 8 }} + {{- include "kube_client.envs" . | indent 8 }} {{- include "opentelemtry.envs" . | indent 8 }} resources: {{- toYaml .Values.timer.resources | nindent 10 }} diff --git a/charts/fission-all/values.yaml b/charts/fission-all/values.yaml index ed197d8..a1585de 100644 --- a/charts/fission-all/values.yaml +++ b/charts/fission-all/values.yaml @@ -92,6 +92,13 @@ createNamespace: true ## enableIstio: false +## Kubernetes client QPS and Burst settings +## +## kubernetesClientQPS represents the maximum queries per second to the kubernetes api server from client instances of fission components. +kubernetesClientQPS: 200 +## kubernetesClientBurst represents the maximum burst queries to the kubernetes api server from client instances of fission components. +kubernetesClientBurst: 500 + ## fetcher is a light weight component that helps in running functions. ## fetcher helps in fetching function source code/build and uploading it when function is invoked. ## @@ -682,7 +689,7 @@ authentication: ## jwtSigningKey is the signing key used for ## signing the JWT token ## - jwtSigningKey: serverless + jwtSigningKey: ## jwtExpiryTime is the JWT expiry time ## in seconds ## default '120'