Files
hunfabric/blueprints/gke/patterns/kong-cloudrun/dns.tf
Julio Diez c205a692a3 Kong Gateway on GKE offloading to Cloud Run (#2299)
* First working version including certificates and HTTPS.

It uses a mix of self-managed certificates and the CA Service.

* One CR service only behind the ILB

* Functional deployment including auto-configuration

A k8s job configures the root certificate, service and route in the admin
api to reach the CR service via Kong proxy.

* Admin API exposed internally only, and some cleanup

* Some name changes

* README

* Remove data source for the vpc and subnet

* Remove data source for Kubernetes services

* Update README

---------

Co-authored-by: Julio Castillo <jccb@google.com>
2024-05-29 16:26:25 +02:00

30 lines
936 B
HCL

/**
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module "private_dns_ilb" {
source = "../../../../modules/dns"
project_id = var.project_id
name = "dns-ilb"
zone_config = {
domain = format("%s.", var.custom_domain)
private = {
client_networks = [var.created_resources.vpc_id]
}
}
recordsets = {
"A " = { records = [module.ilb-l7.address] }
}
}