File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed
Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 6969| `rollout.flagger` | `false` | Use Flagger to control rollouts (`rollout.controller` must be `Deployment` or `StatefulSet`) |
7070| `rollout.analysis` | req. for Canary or Flagger | Flagger or Argo Rollouts analysis for automatic `Canary` or `BlueGreen` promotion |
7171| `rollout.revisionHistoryLimit` | `null` | Number of old ReplicaSets to retain (`rollout.controller` must be `Deployment` or `ArgoRollout`) |
72- | `replicas` | `1` | The number of instances of the service to run (set at least `2` for Pod Disruption Budget) |
72+ | `replicas` | `1` | The number of instances of the service to run |
7373| `autoscaling.enabled` | `false` | Enables automatic starting of additional instances |
7474| `autoscaling.maxReplicas` | `3` | The maximum number of instances to run (must be larger than `replicas`) |
7575| `autoscaling.metric.type` | `Resource` | The type of metric to use for scaling (`Resource`, `Pods`, `Object` or `External`) |
8686| `scheduling.podAffinity` | `{}` | Labels to select other pods this service should share nodes with if possible |
8787| `scheduling.podAntiAffinity` | `{}` | Labels to select other pods this service must not share nodes with |
8888| `scheduling.replicaSpread` | `BestEffort` | How to spread replicas across nodes (`BestEffort`, `Strict`, `None`) |
89+ | `scheduling.minAvailable` | `1` | Minimum number of instances to keep running during cluster maintenance (only if smaller than `replicas`) |
8990| `persistence.enabled` | `false` | Enables persistent storage for the service |
9091| `persistence.storageClass` | | The type of disk to use for storage instead of the cluster default |
9192| `persistence.accessModes` | `[ReadWriteOnce]` | The support access modes the volume can be mounted with |
Original file line number Diff line number Diff line change 44 repository : jwilder/whoami
55 tag : latest
66
7+ replicas : 3
8+
79scheduling :
810 priority : system-cluster-critical
911 nodePreferences :
@@ -16,3 +18,4 @@ scheduling:
1618 podAntiAffinity :
1719 otherKey : otherValue
1820 replicaSpread : Strict
21+ minAvailable : 2
Original file line number Diff line number Diff line change 1- {{- if and .Values.ingress.enabled (gt .Values.replicas 1.0 ) }}
1+ {{- if and (gt .Values.scheduling.minAvailable 0.0) (lt .Values.scheduling.minAvailable .Values.replicas ) }}
22
33apiVersion : policy/v1
44kind : PodDisruptionBudget
@@ -7,7 +7,7 @@ metadata:
77 labels : {{- include "generic-service.top-level-labels" . | nindent 4 }}
88
99spec :
10- minAvailable : 1
10+ minAvailable : {{ .Values.scheduling.minAvailable }}
1111
1212 selector :
1313 matchLabels : {{- include "generic-service.selector-labels" . | nindent 6 }}
Original file line number Diff line number Diff line change 443443 "replicas" : {
444444 "type" : " integer" ,
445445 "default" : 1 ,
446- "description" : " The number of instances of the service to run (set at least 2 for Pod Disruption Budget) "
446+ "description" : " The number of instances of the service to run"
447447 },
448448 "autoscaling" : {
449449 "type" : " object" ,
585585 ],
586586 "default" : " BestEffort" ,
587587 "description" : " How to spread replicas across nodes"
588+ },
589+ "minAvailable" : {
590+ "type" : " integer" ,
591+ "default" : 1 ,
592+ "description" : " Minimum number of instances to keep running during cluster maintenance (only applied if this value is smaller than replicas)"
588593 }
589594 },
590595 "additionalProperties" : false
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ scheduling:
9090 podAffinity : {}
9191 podAntiAffinity : {}
9292 replicaSpread : BestEffort
93+ minAvailable : 1
9394
9495persistence :
9596 enabled : false
You can’t perform that action at this time.
0 commit comments