Skip to content

Commit 4b41d45

Browse files
Update image smoke tests to use dns_round_robin
The knfsd terraform module requires specifying a TRAFFIC_DISTRIBUTION_MODE. Use dns_round_robin as it's the recommended option for new deployments. Change-Id: I8d8d5ba458b25f5bce5d7bf8f75984cb9e1d3cbc (cherry picked from commit 49f9ddd)
1 parent 329880f commit 4b41d45

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

image/smoke-tests/terraform/main.tf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ provider "google" {
2222

2323
locals {
2424
source_ip = google_filestore_instance.source.networks[0].ip_addresses[0]
25-
proxy_ip = module.proxy.nfsproxy_loadbalancer_ipaddress
25+
proxy_ip = module.proxy.dns_name
2626
}
2727

2828
resource "google_filestore_instance" "source" {
@@ -43,16 +43,19 @@ resource "google_filestore_instance" "source" {
4343
}
4444

4545
module "proxy" {
46-
source = "github.com/GoogleCloudPlatform/knfsd-cache-utils//deployment/terraform-module-knfsd?ref=v0.10.0"
46+
source = "../../../deployment/terraform-module-knfsd"
4747

4848
PROJECT = var.project
4949
REGION = var.region
5050
ZONE = var.zone
5151

52-
NETWORK = google_compute_network.this.name
53-
SUBNETWORK = google_compute_subnetwork.this.name
52+
NETWORK = google_compute_network.this.name
53+
SUBNETWORK = google_compute_subnetwork.this.name
54+
SUBNETWORK_PROJECT = google_compute_subnetwork.this.project
5455

5556
AUTO_CREATE_FIREWALL_RULES = false
57+
TRAFFIC_DISTRIBUTION_MODE = "dns_round_robin"
58+
ASSIGN_STATIC_IPS = true
5659

5760
PROXY_BASENAME = "${var.prefix}-proxy"
5861
PROXY_IMAGENAME = var.proxy_image

0 commit comments

Comments
 (0)