mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 14:57:31 +08:00
[bitnami/metrics-server] PDB review (#25982)
Signed-off-by: Fran Mulero <fmulero@vmware.com> Signed-off-by: Andrés Bono <andresbono@vmware.com> Co-authored-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
@@ -28,4 +28,4 @@ maintainers:
|
||||
name: metrics-server
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/metrics-server
|
||||
version: 7.0.6
|
||||
version: 7.1.0
|
||||
|
||||
@@ -134,7 +134,7 @@ As an alternative, you can use one of the preset configurations for pod affinity
|
||||
| `terminationGracePeriodSeconds` | In seconds, time the given to the metrics-server pod needs to terminate gracefully | `""` |
|
||||
| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
|
||||
| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
|
||||
| `pdb.create` | Create a PodDisruptionBudget | `false` |
|
||||
| `pdb.create` | Create a PodDisruptionBudget | `true` |
|
||||
| `pdb.minAvailable` | Minimum available instances | `""` |
|
||||
| `pdb.maxUnavailable` | Maximum unavailable instances | `""` |
|
||||
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
|
||||
|
||||
@@ -3,7 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if .Values.pdb.create -}}
|
||||
{{- if .Values.pdb.create }}
|
||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
@@ -16,11 +16,11 @@ metadata:
|
||||
spec:
|
||||
{{- if .Values.pdb.minAvailable }}
|
||||
minAvailable: {{ .Values.pdb.minAvailable }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.pdb.maxUnavailable }}
|
||||
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
|
||||
selector:
|
||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
@@ -248,7 +248,7 @@ podAntiAffinityPreset: soft
|
||||
## @param pdb.maxUnavailable Maximum unavailable instances
|
||||
##
|
||||
pdb:
|
||||
create: false
|
||||
create: true
|
||||
minAvailable: ""
|
||||
maxUnavailable: ""
|
||||
## Node affinity preset
|
||||
|
||||
Reference in New Issue
Block a user