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