Skip to content

Commit b863547

Browse files
arielr-ltAriel Rolfo
andauthored
Stabilize sandbox Elasticsearch node placement (#1032)
## Summary - Pin sandbox Elasticsearch pods to the sandbox-large managed node group. - Mark sandbox Elasticsearch pods as not safe to evict by cluster-autoscaler. - Require both sandbox Elasticsearch pods to remain available for voluntary disruptions. - Keep sandbox-large node group minimum capacity at 2 nodes. ## Validation - Applied the Kubernetes manifest changes to `credreg-sandbox`. - Updated live EKS node group `ce-registry-eks-ng-sandbox-large` to `min=2`, `desired=2`, `max=4`. - Verified Elasticsearch StatefulSet rollout completed. - Verified Elasticsearch cluster health is `green` with 2 nodes and 0 unassigned, initializing, or relocating shards. --------- Co-authored-by: Ariel Rolfo <arielr-lt+username@users.noreply.github.com>
1 parent 43b69e8 commit b863547

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

terraform/environments/eks/k8s-manifests-sandbox/elasticsearch-pdb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: elasticsearch-pdb
55
namespace: credreg-sandbox
66
spec:
7-
minAvailable: 1
7+
minAvailable: 2
88
selector:
99
matchLabels:
1010
app: elasticsearch

terraform/environments/eks/k8s-manifests-sandbox/elasticsearch-statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ spec:
1616
metadata:
1717
labels:
1818
app: elasticsearch
19+
annotations:
20+
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
1921
spec:
2022
subdomain: elasticsearch-discovery
2123
priorityClassName: prod-high
2224
nodeSelector:
2325
env: sandbox
26+
eks.amazonaws.com/nodegroup: ce-registry-eks-ng-sandbox-large
2427
tolerations:
2528
- key: "env"
2629
operator: "Equal"

terraform/environments/eks/terraform.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ng_staging_max_size = 6
3434
ng_sandbox_min_size = 1
3535
ng_sandbox_desired_size = 1
3636
ng_sandbox_max_size = 5
37-
ng_sandbox_large_min_size = 1
37+
ng_sandbox_large_min_size = 2
3838
ng_sandbox_large_desired_size = 2
3939
ng_sandbox_large_max_size = 4
4040
ng_prod_min_size = 2

0 commit comments

Comments
 (0)