From 809f14e31efea3621c40eb5583aed3d488721523 Mon Sep 17 00:00:00 2001 From: Puru <5674762+tuladhar@users.noreply.github.com> Date: Mon, 1 Jan 2024 20:50:06 +0545 Subject: [PATCH] Enable HA with PDB --- helm/teleport-kube-agent/values.schema.json | 4 ++-- helm/teleport-kube-agent/values.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/teleport-kube-agent/values.schema.json b/helm/teleport-kube-agent/values.schema.json index f993771..4c15276 100644 --- a/helm/teleport-kube-agent/values.schema.json +++ b/helm/teleport-kube-agent/values.schema.json @@ -336,7 +336,7 @@ "replicaCount": { "$id": "#/properties/replicaCount", "type": "integer", - "default": 1 + "default": 2 }, "clusterRoleName": { "$id": "#/properties/clusterRoleName", @@ -378,7 +378,7 @@ "enabled": { "$id": "#/properties/highAvailability/properties/podDisruptionBudget/properties/enabled", "type": "boolean", - "default": false + "default": true }, "minAvailable": { "$id": "#/properties/highAvailability/properties/podDisruptionBudget/properties/minAvailable", diff --git a/helm/teleport-kube-agent/values.yaml b/helm/teleport-kube-agent/values.yaml index 63f4aec..bb5f829 100644 --- a/helm/teleport-kube-agent/values.yaml +++ b/helm/teleport-kube-agent/values.yaml @@ -176,7 +176,7 @@ labels: {} # Settings for high availability. highAvailability: # Set to >1 for a high availability mode where multiple Teleport agent pods will be deployed. - replicaCount: 1 + replicaCount: 2 # Setting 'requireAntiAffinity' to true will use 'requiredDuringSchedulingIgnoredDuringExecution' to require that multiple Teleport pods must not be scheduled on the # same physical host. This will result in Teleport pods failing to be scheduled in very small clusters or during node downtime, so should be used with caution. # Setting 'requireAntiAffinity' to false (the default) uses 'preferredDuringSchedulingIgnoredDuringExecution' to make this a soft requirement. @@ -185,7 +185,7 @@ highAvailability: # If enabled will create a Pod Disruption Budget # https://kubernetes.io/docs/concepts/workloads/pods/disruptions/ podDisruptionBudget: - enabled: false + enabled: true minAvailable: 1 ################################################################