GKECustomDomainMapping
A resource for mapping a custom domain to a service hosted on GKE.
Like all Resources, this class configures itself across multiple Environments.
Example Usage
1
2import launchflow as lf
3
4ip_address = lf.gcp.GlobalIPAddress("my-global-ip-address")
5ssl_certificate = lf.gcp.ManagedSSLCertificate("my-ssl-certificate", domains=["example.com"])
6cluster = lf.gcp.GKECluster("my-gke-cluster")
7service = lf.gcp.GKECloudRunService("my-gke-cloud-run-service", cluster=cluster)
8custom_domain_mapping = lf.gcp.GKECustomDomainMapping(
9 "my-custom-domain-mapping",
10 ip_address=ip_address,
11 ssl_certificate=ssl_certificate,
12 service_container=service.container,
13)
initialization
Create a new CustomDomainMapping resource.
Args:
name
(str): The name of the CustomDomainMapping resource. This must be globally unique.ssl_certificate (ManagedSSLCertificate):
The SSL certificate to use for the domain.ip_address (GlobalIPAddress)
: The IP address to map the domain to.service_container (ServiceContainer)
: The ServiceContainer to map the domain to.