Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat(helm-chart): allow to provide affinity values for the pods
Tchoupinax001265cf2a18
diff --git a/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yamlindex 95fb117444..86c00c1bc1 100644--- a/helm-charts/infisical/templates/backend-deployment.yaml+++ b/helm-charts/infisical/templates/backend-deployment.yaml@@ -25,6 +25,10 @@ spec:{{- toYaml . | nindent 8 }}{{- end }}spec:+ {{- with $backend.affinity }}+ affinity:+ {{- toYaml . | nindent 8 }}+ {{- end }}containers:- name: {{ template "infisical.name" . }}-{{ $backend.name }}image: "{{ $backend.image.repository }}:{{ $backend.image.tag | default "latest" }}"diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yamlindex 162f7154e3..043a942631 100644--- a/helm-charts/infisical/templates/frontend-deployment.yaml+++ b/helm-charts/infisical/templates/frontend-deployment.yaml@@ -25,6 +25,10 @@ spec:{{- toYaml . | nindent 8 }}{{- end }}spec:+ {{- with $frontend.affinity }}+ affinity:+ {{- toYaml . | nindent 8 }}+ {{- end }}containers:- name: {{ template "infisical.name" . }}-{{ $frontend.name }}image: "{{ $frontend.image.repository }}:{{ $frontend.image.tag | default "latest" }}"diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yamlindex 0bda0d6953..75f57e7bdc 100644--- a/helm-charts/infisical/values.yaml+++ b/helm-charts/infisical/values.yaml@@ -16,31 +16,31 @@ frontend:## @param frontend.enabled Enable frontend##enabled: true- ## @param frontend.name Backend name+ ## @param frontend.name Frontend name##name: frontend- ## @param frontend.fullnameOverride Backend fullnameOverride+ ## @param frontend.fullnameOverride Frontend fullnameOverride##fullnameOverride: ""- ## @param frontend.podAnnotations Backend pod annotations+ ## @param frontend.podAnnotations Frontend pod annotations##podAnnotations: {}- ## @param frontend.deploymentAnnotations Backend deployment annotations+ ## @param frontend.deploymentAnnotations Frontend deployment annotations##deploymentAnnotations: {}- ## @param frontend.replicaCount Backend replica count+ ## @param frontend.replicaCount Frontend replica count##replicaCount: 2- ## Backend image parameters+ ## Frontend image parameters##image:- ## @param frontend.image.repository Backend image repository+ ## @param frontend.image.repository Frontend image repository##repository: infisical/frontend- ## @param frontend.image.tag Backend image tag+ ## @param frontend.image.tag Frontend image tag##tag: "latest"- ## @param frontend.image.pullPolicy Backend image pullPolicy+ ## @param frontend.image.pullPolicy Frontend image pullPolicy##pullPolicy: IfNotPresent## @param frontend.resources.limits.memory container memory limit [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)@@ -51,6 +51,9 @@ frontend:memory: 100Mirequests:cpu: 100m+ ## @param frontend.affinity Frontend pod affinity+ ##+ affinity: {}## @param frontend.kubeSecretRef Backend secret resource reference name (containing required [frontend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars))##kubeSecretRef: ""@@ -118,6 +121,9 @@ backend:memory: 200Mirequests:cpu: 150m+ ## @param backend.affinity Backend pod affinity+ ##+ affinity: {}## @param backend.kubeSecretRef Backend secret resource reference name (containing required [backend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars))##kubeSecretRef: ""