This repository was archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charts/osm: add pod disruption budgets for control plane
Adds pod disruption budgets for osm-controller and osm-injector that can be optionally enabled. This is an HA feature that ensures replicated control plane apps always maintain a certain number of healthy replicas at any given time, to account for voluntary outages such as a node being drained. Part of #3390 Signed-off-by: Shashank Ram <[email protected]>
- Loading branch information
1 parent
68279d4
commit 30a6ec0
Showing
5 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
charts/osm/templates/osm-controller-pod-disruption-budget.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.OpenServiceMesh.osmController.enablePodDisruptionBudget }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: osm-controller-pdb | ||
namespace: {{ include "osm.namespace" . }} | ||
labels: | ||
app: osm-controller | ||
spec: | ||
minAvailable: 1 | ||
selector: | ||
matchLabels: | ||
app: osm-controller | ||
{{- end }} |
14 changes: 14 additions & 0 deletions
14
charts/osm/templates/osm-injector-pod-disruption-budget.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.OpenServiceMesh.injector.enablePodDisruptionBudget }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: osm-injector-pdb | ||
namespace: {{ include "osm.namespace" . }} | ||
labels: | ||
app: osm-injector | ||
spec: | ||
minAvailable: 1 | ||
selector: | ||
matchLabels: | ||
app: osm-injector | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters