mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-04 11:15:39 +00:00
helm: add enableServiceLinks, poddisruptionbudget (#1293)
Signed-off-by: Juri Malinovski <juri.malinovski@coolbet.com>
This commit is contained in:
@@ -31,6 +31,7 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
|
|||||||
| containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
|
| containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
|
||||||
| containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
|
| containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
|
||||||
| containerSecurityContext.runAsNonRoot | bool | `true` | |
|
| containerSecurityContext.runAsNonRoot | bool | `true` | |
|
||||||
|
| enableServiceLinks | bool | `false` | |
|
||||||
| extraManifests | list | `[]` | List of additional k8s manifests. |
|
| extraManifests | list | `[]` | List of additional k8s manifests. |
|
||||||
| fullnameOverride | string | `""` | |
|
| fullnameOverride | string | `""` | |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
@@ -73,6 +74,9 @@ RustFS helm chart supports **standalone and distributed mode**. For standalone m
|
|||||||
| mode.standalone.enabled | bool | `false` | RustFS standalone mode support, namely one pod one pvc. |
|
| mode.standalone.enabled | bool | `false` | RustFS standalone mode support, namely one pod one pvc. |
|
||||||
| nameOverride | string | `""` | |
|
| nameOverride | string | `""` | |
|
||||||
| nodeSelector | object | `{}` | |
|
| nodeSelector | object | `{}` | |
|
||||||
|
| pdb.create | bool | `false` | Enable/disable a Pod Disruption Budget creation |
|
||||||
|
| pdb.maxUnavailable | string | `1` | |
|
||||||
|
| pdb.minAvailable | string | `""` | |
|
||||||
| podAnnotations | object | `{}` | |
|
| podAnnotations | object | `{}` | |
|
||||||
| podLabels | object | `{}` | |
|
| podLabels | object | `{}` | |
|
||||||
| podSecurityContext.fsGroup | int | `10001` | |
|
| podSecurityContext.fsGroup | int | `10001` | |
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{{- if and .Values.pdb.create .Values.mode.distributed.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: policy/v1
|
||||||
|
kind: PodDisruptionBudget
|
||||||
|
metadata:
|
||||||
|
name: {{ include "rustfs.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "rustfs.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
{{- if .Values.pdb.minAvailable }}
|
||||||
|
minAvailable: {{ .Values.pdb.minAvailable }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if or .Values.pdb.maxUnavailable (not .Values.pdb.minAvailable) }}
|
||||||
|
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "rustfs.selectorLabels" . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
@@ -26,6 +26,7 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
enableServiceLinks: {{ .Values.enableServiceLinks }}
|
||||||
{{- with include "chart.imagePullSecrets" . }}
|
{{- with include "chart.imagePullSecrets" . }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- . | nindent 8 }}
|
{{- . | nindent 8 }}
|
||||||
|
|||||||
@@ -187,4 +187,14 @@ initStep:
|
|||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
|
|
||||||
|
pdb:
|
||||||
|
create: false
|
||||||
|
# Minimum number/percentage of pods that should remain scheduled
|
||||||
|
minAvailable: ""
|
||||||
|
# Maximum number/percentage of pods that may be made unavailable
|
||||||
|
maxUnavailable: 1
|
||||||
|
|
||||||
|
# Whether information about services should be injected into pod's environment variable
|
||||||
|
enableServiceLinks: false
|
||||||
|
|
||||||
extraManifests: []
|
extraManifests: []
|
||||||
|
|||||||
Reference in New Issue
Block a user