From 807a2dbb186f088f347d568e0de63b1da6a6129e Mon Sep 17 00:00:00 2001 From: Stelian Ionescu Date: Tue, 10 Dec 2024 15:45:02 -0500 Subject: [PATCH] Forge: mark runner and validator pods as non-evictable --- testsuite/forge-test-runner-template.yaml | 2 ++ .../backend/k8s/helm-values/aptos-node-default-values.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/testsuite/forge-test-runner-template.yaml b/testsuite/forge-test-runner-template.yaml index 1d856ca269c04..2a4dc3abfdc46 100644 --- a/testsuite/forge-test-runner-template.yaml +++ b/testsuite/forge-test-runner-template.yaml @@ -9,6 +9,8 @@ metadata: forge-image-tag: {FORGE_IMAGE_TAG} forge-test-suite: {FORGE_TEST_SUITE} forge-username: {FORGE_USERNAME} + annotations: + "cluster-autoscaler.kubernetes.io/safe-to-evict": "false" spec: restartPolicy: Never serviceAccountName: forge diff --git a/testsuite/forge/src/backend/k8s/helm-values/aptos-node-default-values.yaml b/testsuite/forge/src/backend/k8s/helm-values/aptos-node-default-values.yaml index 4487bd3b70c3c..4e6023da4bf87 100644 --- a/testsuite/forge/src/backend/k8s/helm-values/aptos-node-default-values.yaml +++ b/testsuite/forge/src/backend/k8s/helm-values/aptos-node-default-values.yaml @@ -11,6 +11,8 @@ validator: enable_storage_sharding: true indexer_db_config: enable_event: true + podAnnotations: + "cluster-autoscaler.kubernetes.io/safe-to-evict": "false" fullnode: # at most one VFN per validator, depending on numFullnodeGroups @@ -28,6 +30,8 @@ fullnode: enable_storage_sharding: true indexer_db_config: enable_event: true + podAnnotations: + "cluster-autoscaler.kubernetes.io/safe-to-evict": "false" service: validator: