diff --git a/rs/tests/driver/src/k8s/tnet.rs b/rs/tests/driver/src/k8s/tnet.rs index 9edf3ff5078..4831f74a65f 100644 --- a/rs/tests/driver/src/k8s/tnet.rs +++ b/rs/tests/driver/src/k8s/tnet.rs @@ -472,6 +472,7 @@ spec: &vm_name.clone(), &vm_req.vcpus.to_string(), &vm_req.memory_kibibytes.to_string(), + &(vm_req.memory_kibibytes / 2).to_string(), ipv4, ipv6, false, diff --git a/rs/tests/driver/src/k8s/virtualmachine.rs b/rs/tests/driver/src/k8s/virtualmachine.rs index bc927e4afea..a39c0777cbd 100644 --- a/rs/tests/driver/src/k8s/virtualmachine.rs +++ b/rs/tests/driver/src/k8s/virtualmachine.rs @@ -65,8 +65,11 @@ spec: - port: 18444 - port: 20443 resources: + overcommitGuestOverhead: true requests: - memory: {memory}Ki + memory: {memory_request}Ki + memory: + guest: {memory}Ki networks: - name: default pod: {} @@ -165,8 +168,11 @@ spec: - port: 19100 - port: 19531 resources: + overcommitGuestOverhead: true requests: - memory: {memory}Ki + memory: {memory_request}Ki + memory: + guest: {memory}Ki networks: - name: default pod: {} @@ -184,6 +190,7 @@ pub async fn create_vm( name: &str, cpus: &str, memory: &str, + memory_request: &str, ipv4: Ipv4Addr, ipv6: Ipv6Addr, running: bool, @@ -201,6 +208,7 @@ pub async fn create_vm( .replace("{tnet}", &owner.name) .replace("{running}", &running.to_string()) .replace("{memory}", memory) + .replace("{memory_request}", memory_request) .replace("{cpus}", cpus) .replace("{ipv4}", &ipv4.to_string()) .replace("{ipv6}", &ipv6.to_string());