diff --git a/k8s-readwrite.tf b/k8s-readwrite.tf index 153f5ab..f79e39a 100644 --- a/k8s-readwrite.tf +++ b/k8s-readwrite.tf @@ -4,7 +4,7 @@ * Licensed under the Apache License, Version 2.0 (the "License"); */ -resource "kubernetes_deployment" "apiary_hms_readwrite" { +resource "kubernetes_deployment_v1" "apiary_hms_readwrite" { count = var.hms_instance_type == "k8s" ? 1 : 0 metadata { name = "${local.hms_alias}-readwrite" @@ -258,11 +258,11 @@ resource "kubernetes_deployment" "apiary_hms_readwrite" { } resources { - limits { + limits = { cpu = local.k8s_rw_cpu_limit memory = "${var.hms_rw_heapsize}Mi" } - requests { + requests = { cpu = local.k8s_rw_cpu memory = "${var.hms_rw_heapsize}Mi" }