mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
Merge pull request #1080 from Tchoupinax/main
feat(helm-chart): allow to provide affinity values for the pods
This commit is contained in:
@@ -7,7 +7,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.3.4
|
version: 0.3.5
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# 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 to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -64,16 +64,17 @@ kubectl get secrets -n <namespace> <secret-name> \
|
|||||||
| Name | Description | Value |
|
| Name | Description | Value |
|
||||||
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
|
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
|
||||||
| `frontend.enabled` | Enable frontend | `true` |
|
| `frontend.enabled` | Enable frontend | `true` |
|
||||||
| `frontend.name` | Backend name | `frontend` |
|
| `frontend.name` | Frontend name | `frontend` |
|
||||||
| `frontend.fullnameOverride` | Backend fullnameOverride | `""` |
|
| `frontend.fullnameOverride` | Frontend fullnameOverride | `""` |
|
||||||
| `frontend.podAnnotations` | Backend pod annotations | `{}` |
|
| `frontend.podAnnotations` | Frontend pod annotations | `{}` |
|
||||||
| `frontend.deploymentAnnotations` | Backend deployment annotations | `{}` |
|
| `frontend.deploymentAnnotations` | Frontend deployment annotations | `{}` |
|
||||||
| `frontend.replicaCount` | Backend replica count | `2` |
|
| `frontend.replicaCount` | Frontend replica count | `2` |
|
||||||
| `frontend.image.repository` | Backend image repository | `infisical/frontend` |
|
| `frontend.image.repository` | Frontend image repository | `infisical/frontend` |
|
||||||
| `frontend.image.tag` | Backend image tag | `latest` |
|
| `frontend.image.tag` | Frontend image tag | `latest` |
|
||||||
| `frontend.image.pullPolicy` | Backend image pullPolicy | `IfNotPresent` |
|
| `frontend.image.pullPolicy` | Frontend image pullPolicy | `IfNotPresent` |
|
||||||
| `frontend.resources.limits.memory` | container memory limit [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `100Mi` |
|
| `frontend.resources.limits.memory` | container memory limit [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `100Mi` |
|
||||||
| `frontend.resources.requests.cpu` | container CPU request [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `10m` |
|
| `frontend.resources.requests.cpu` | container CPU request [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `100m` |
|
||||||
|
| `frontend.affinity` | Frontend pod affinity | `{}` |
|
||||||
| `frontend.kubeSecretRef` | Backend secret resource reference name (containing required [frontend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars)) | `""` |
|
| `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.annotations` | Backend service annotations | `{}` |
|
||||||
| `frontend.service.type` | Backend service type | `ClusterIP` |
|
| `frontend.service.type` | Backend service type | `ClusterIP` |
|
||||||
@@ -95,6 +96,7 @@ kubectl get secrets -n <namespace> <secret-name> \
|
|||||||
| `backend.image.pullPolicy` | Backend image pullPolicy | `IfNotPresent` |
|
| `backend.image.pullPolicy` | Backend image pullPolicy | `IfNotPresent` |
|
||||||
| `backend.resources.limits.memory` | container memory limit [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `200Mi` |
|
| `backend.resources.limits.memory` | container memory limit [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `200Mi` |
|
||||||
| `backend.resources.requests.cpu` | container CPU request [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `150m` |
|
| `backend.resources.requests.cpu` | container CPU request [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | `150m` |
|
||||||
|
| `backend.affinity` | Backend pod affinity | `{}` |
|
||||||
| `backend.kubeSecretRef` | Backend secret resource reference name (containing required [backend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars)) | `""` |
|
| `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.annotations` | Backend service annotations | `{}` |
|
||||||
| `backend.service.type` | Backend service type | `ClusterIP` |
|
| `backend.service.type` | Backend service type | `ClusterIP` |
|
||||||
@@ -194,6 +196,7 @@ kubectl get secrets -n <namespace> <secret-name> \
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Persistence
|
## Persistence
|
||||||
|
|
||||||
The database persistence is enabled by default, your volumes will remain on your cluster even after uninstalling the chart. To disable persistence, set this value `mongodb.persistence.enabled: false`
|
The database persistence is enabled by default, your volumes will remain on your cluster even after uninstalling the chart. To disable persistence, set this value `mongodb.persistence.enabled: false`
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- with $backend.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ template "infisical.name" . }}-{{ $backend.name }}
|
- name: {{ template "infisical.name" . }}-{{ $backend.name }}
|
||||||
image: "{{ $backend.image.repository }}:{{ $backend.image.tag | default "latest" }}"
|
image: "{{ $backend.image.repository }}:{{ $backend.image.tag | default "latest" }}"
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- with $frontend.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ template "infisical.name" . }}-{{ $frontend.name }}
|
- name: {{ template "infisical.name" . }}-{{ $frontend.name }}
|
||||||
image: "{{ $frontend.image.repository }}:{{ $frontend.image.tag | default "latest" }}"
|
image: "{{ $frontend.image.repository }}:{{ $frontend.image.tag | default "latest" }}"
|
||||||
|
|||||||
@@ -16,31 +16,31 @@ frontend:
|
|||||||
## @param frontend.enabled Enable frontend
|
## @param frontend.enabled Enable frontend
|
||||||
##
|
##
|
||||||
enabled: true
|
enabled: true
|
||||||
## @param frontend.name Backend name
|
## @param frontend.name Frontend name
|
||||||
##
|
##
|
||||||
name: frontend
|
name: frontend
|
||||||
## @param frontend.fullnameOverride Backend fullnameOverride
|
## @param frontend.fullnameOverride Frontend fullnameOverride
|
||||||
##
|
##
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
## @param frontend.podAnnotations Backend pod annotations
|
## @param frontend.podAnnotations Frontend pod annotations
|
||||||
##
|
##
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
## @param frontend.deploymentAnnotations Backend deployment annotations
|
## @param frontend.deploymentAnnotations Frontend deployment annotations
|
||||||
##
|
##
|
||||||
deploymentAnnotations: {}
|
deploymentAnnotations: {}
|
||||||
## @param frontend.replicaCount Backend replica count
|
## @param frontend.replicaCount Frontend replica count
|
||||||
##
|
##
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
## Backend image parameters
|
## Frontend image parameters
|
||||||
##
|
##
|
||||||
image:
|
image:
|
||||||
## @param frontend.image.repository Backend image repository
|
## @param frontend.image.repository Frontend image repository
|
||||||
##
|
##
|
||||||
repository: infisical/frontend
|
repository: infisical/frontend
|
||||||
## @param frontend.image.tag Backend image tag
|
## @param frontend.image.tag Frontend image tag
|
||||||
##
|
##
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
## @param frontend.image.pullPolicy Backend image pullPolicy
|
## @param frontend.image.pullPolicy Frontend image pullPolicy
|
||||||
##
|
##
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
## @param frontend.resources.limits.memory container memory limit [check the offical kubernetes documentations](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
|
## @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: 100Mi
|
memory: 100Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
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))
|
## @param frontend.kubeSecretRef Backend secret resource reference name (containing required [frontend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars))
|
||||||
##
|
##
|
||||||
kubeSecretRef: ""
|
kubeSecretRef: ""
|
||||||
@@ -118,6 +121,9 @@ backend:
|
|||||||
memory: 200Mi
|
memory: 200Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 150m
|
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))
|
## @param backend.kubeSecretRef Backend secret resource reference name (containing required [backend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars))
|
||||||
##
|
##
|
||||||
kubeSecretRef: ""
|
kubeSecretRef: ""
|
||||||
@@ -286,7 +292,7 @@ mongodb:
|
|||||||
##
|
##
|
||||||
rootPassword: root
|
rootPassword: root
|
||||||
|
|
||||||
## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`)
|
## @param mongodb.auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`)
|
||||||
## NOTE: When it's set the previous parameters are ignored.
|
## NOTE: When it's set the previous parameters are ignored.
|
||||||
##
|
##
|
||||||
existingSecret: ""
|
existingSecret: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user