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
2
import launchflow as lf
3
4
ip_address = lf.gcp.GlobalIPAddress("my-global-ip-address")
5
ssl_certificate = lf.gcp.ManagedSSLCertificate("my-ssl-certificate", domains=["example.com"])
6
cluster = lf.gcp.GKECluster("my-gke-cluster")
7
service = lf.gcp.GKECloudRunService("my-gke-cloud-run-service", cluster=cluster)
8
custom_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.