mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 23:47:48 +08:00
[bitnami/etcd] Add statefulsetLabels and podLabels (#4518)
This commit is contained in:
@@ -25,4 +25,4 @@ name: etcd
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-etcd
|
||||
- https://coreos.com/etcd/
|
||||
version: 5.2.1
|
||||
version: 5.3.0
|
||||
|
||||
@@ -129,7 +129,9 @@ The following tables lists the configurable parameters of the etcd chart and the
|
||||
| `readinessProbe.timeoutSeconds` | When the probe times out | `5` |
|
||||
| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` |
|
||||
| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | `1` |
|
||||
| `statefulsetLabels` | Extra statefulset labels | `{}` (evaluated as a template) |
|
||||
| `podAnnotations` | Annotations to be added to pods | `{}` |
|
||||
| `podLabels` | Extra pod labels | `{}` (evaluated as a template) |
|
||||
| `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` |
|
||||
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
|
||||
|
||||
@@ -3,6 +3,9 @@ kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ include "etcd.fullname" . }}
|
||||
labels: {{- include "etcd.labels" . | nindent 4 }}
|
||||
{{- if .Values.statefulsetLabels }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.statefulsetLabels "context" $) | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels: {{- include "etcd.matchLabels" . | nindent 6 }}
|
||||
@@ -20,6 +23,9 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels: {{- include "etcd.labels" . | nindent 8 }}
|
||||
{{- if .Values.podLabels }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.podAnnotations (and .Values.metrics.enabled .Values.metrics.podAnnotations (not .Values.metrics.serviceMonitor.enabled)) }}
|
||||
annotations:
|
||||
{{- if .Values.podAnnotations }}
|
||||
|
||||
@@ -295,11 +295,21 @@ readinessProbe:
|
||||
successThreshold: 1
|
||||
failureThreshold: 5
|
||||
|
||||
## Statefulset labels. Evaluated as a template
|
||||
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||
##
|
||||
statefulsetLabels: {}
|
||||
|
||||
## Pod annotations
|
||||
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
|
||||
##
|
||||
podAnnotations: {}
|
||||
|
||||
## Pod labels. Evaluated as a template
|
||||
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||
##
|
||||
podLabels: {}
|
||||
|
||||
## Pod affinity preset
|
||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
||||
## Allowed values: soft, hard
|
||||
|
||||
@@ -297,11 +297,21 @@ readinessProbe:
|
||||
successThreshold: 1
|
||||
failureThreshold: 5
|
||||
|
||||
## Statefulset labels. Evaluated as a template
|
||||
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||
##
|
||||
statefulsetLabels: {}
|
||||
|
||||
## Pod annotations
|
||||
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
|
||||
##
|
||||
podAnnotations: {}
|
||||
|
||||
## Pod labels. Evaluated as a template
|
||||
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||
##
|
||||
podLabels: {}
|
||||
|
||||
## Pod affinity preset
|
||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
||||
## Allowed values: soft, hard
|
||||
|
||||
Reference in New Issue
Block a user