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
add resource specification to frontend and backend deployment containers
MohamadTahir5704dfb35f95
diff --git a/helm-charts/infisical/CHANGELOG.md b/helm-charts/infisical/CHANGELOG.mdnew file mode 100644index 0000000000..131fbda941--- /dev/null+++ b/helm-charts/infisical/CHANGELOG.md@@ -0,0 +1,3 @@+# 0.3.3+### Changes since 0.3.2 [#933](https://github.com/Infisical/infisical/pull/933)+- added resource specs to both the frontend and backenddiff --git a/helm-charts/infisical/Chart.yaml b/helm-charts/infisical/Chart.yamlindex 5f36843465..5964553dfc 100644--- a/helm-charts/infisical/Chart.yaml+++ b/helm-charts/infisical/Chart.yaml@@ -7,7 +7,7 @@ type: application# This is the chart version. This version number should be incremented each time you make changes# to the chart and its templates, including the app version.# Versions are expected to follow Semantic Versioning (https://semver.org/)-version: 0.3.2+version: 0.3.3# This is the version number of the application being deployed. This version number should be# incremented each time you make changes to the application. Versions are not expected todiff --git a/helm-charts/infisical/README.md b/helm-charts/infisical/README.mdindex de001d4f7a..f09330ea56 100644--- a/helm-charts/infisical/README.md+++ b/helm-charts/infisical/README.md@@ -61,22 +61,23 @@ kubectl get secrets -n <namespace> <secret-name> \### Infisical frontend parameters-| Name | Description | Value |-| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |-| `frontend.enabled` | Enable frontend | `true` |-| `frontend.name` | Backend name | `frontend` |-| `frontend.fullnameOverride` | Backend fullnameOverride | `""` |-| `frontend.podAnnotations` | Backend pod annotations | `{}` |-| `frontend.deploymentAnnotations` | Backend deployment annotations | `{}` |-| `frontend.replicaCount` | Backend replica count | `2` |-| `frontend.image.repository` | Backend image repository | `infisical/frontend` |-| `frontend.image.tag` | Backend image tag | `latest` |-| `frontend.image.pullPolicy` | Backend image pullPolicy | `IfNotPresent` |-| `frontend.kubeSecretRef` | Backend secret resource reference name (containing required [frontend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars)) | `""` |-| `frontend.service.annotations` | Backend service annotations | `{}` |-| `frontend.service.type` | Backend service type | `ClusterIP` |-| `frontend.service.nodePort` | Backend service nodePort (used if above type is `NodePort`) | `""` |-| `frontendEnvironmentVariables.SITE_URL` | Absolute URL including the protocol (e.g. https://app.infisical.com) | `infisical.local` |+| Name | Description | Value |+| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- |+| `frontend.enabled` | Enable frontend | `true` |+| `frontend.name` | Backend name | `frontend` |+| `frontend.fullnameOverride` | Backend fullnameOverride | `""` |+| `frontend.podAnnotations` | Backend pod annotations | `{}` |+| `frontend.deploymentAnnotations` | Backend deployment annotations | `{}` |+| `frontend.replicaCount` | Backend replica count | `2` |+| `frontend.image.repository` | Backend image repository | `infisical/frontend` |+| `frontend.image.tag` | Backend image tag | `latest` |+| `frontend.image.pullPolicy` | Backend image pullPolicy | `IfNotPresent` |+| `frontend.kubeSecretRef` | Backend secret resource reference name (containing required [frontend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars)) | `""` |+| `frontend.service.annotations` | Backend service annotations | `{}` |+| `frontend.service.type` | Backend service type | `ClusterIP` |+| `frontend.service.nodePort` | Backend service nodePort (used if above type is `NodePort`) | `""` |+| `frontend.resources` | Frontend container resource spesification, check the offical [kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `` |+| `frontendEnvironmentVariables.SITE_URL` | Absolute URL including the protocol (e.g. https://app.infisical.com) | `infisical.local` |### Infisical backend parameters@@ -91,6 +92,7 @@ kubectl get secrets -n <namespace> <secret-name> \| `backend.image.repository` | Backend image repository | `infisical/backend` || `backend.image.tag` | Backend image tag | `latest` || `backend.image.pullPolicy` | Backend image pullPolicy | `IfNotPresent` |+| `backend.resources` | Backend container resource spesification, check the offical [kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `` || `backend.kubeSecretRef` | Backend secret resource reference name (containing required [backend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars)) | `""` || `backend.service.annotations` | Backend service annotations | `{}` || `backend.service.type` | Backend service type | `ClusterIP` |diff --git a/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yamlindex 5646d368b3..95fb117444 100644--- a/helm-charts/infisical/templates/backend-deployment.yaml+++ b/helm-charts/infisical/templates/backend-deployment.yaml@@ -40,7 +40,9 @@ spec:envFrom:- secretRef:name: {{ $backend.kubeSecretRef | default (include "infisical.backend.fullname" .) }}-+ {{- if $backend.resources }}+ resources: {{- toYaml $backend.resources | nindent 12 }}+ {{- end }}---apiVersion: v1diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yamlindex 9c5cd15608..162f7154e3 100644--- a/helm-charts/infisical/templates/frontend-deployment.yaml+++ b/helm-charts/infisical/templates/frontend-deployment.yaml@@ -40,7 +40,9 @@ spec:name: {{ $frontend.kubeSecretRef | default (include "infisical.frontend.fullname" .) }}ports:- containerPort: 3000-+ {{- if $frontend.resources }}+ resources: {{- toYaml $frontend.resources | nindent 12 }}+ {{- end }}---apiVersion: v1diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yamlindex 1ffbc318f6..1dafd89952 100644--- a/helm-charts/infisical/values.yaml+++ b/helm-charts/infisical/values.yaml@@ -43,6 +43,13 @@ frontend:## @param frontend.image.pullPolicy Backend image pullPolicy##pullPolicy: IfNotPresent+ ## container resource specifications [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)+ ##+ resources:+ limits:+ memory: 100Mi+ requests:+ cpu: 10m## @param frontend.kubeSecretRef Backend secret resource reference name (containing required [frontend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars))##kubeSecretRef: ""@@ -102,6 +109,13 @@ backend:## @param backend.image.pullPolicy Backend image pullPolicy##pullPolicy: IfNotPresent+ ## container resource specifications [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)+ ##+ resources:+ limits:+ memory: 200Mi+ requests:+ cpu: 150m## @param backend.kubeSecretRef Backend secret resource reference name (containing required [backend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars))##kubeSecretRef: ""