Re-enable gce ingress.
This commit is contained in:
parent
91dd7095da
commit
cbab018652
@ -304,7 +304,7 @@ Question and Answer
|
|||||||
|
|
||||||
[GKE assigns a separate IP address to each `Ingress`](https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#limitations), but we can have a single `Gateway` with an IP address and then any quantity of `HTTPRoute`. This is a design choice for GKE, and not a limitation of kubernetes.
|
[GKE assigns a separate IP address to each `Ingress`](https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#limitations), but we can have a single `Gateway` with an IP address and then any quantity of `HTTPRoute`. This is a design choice for GKE, and not a limitation of kubernetes.
|
||||||
|
|
||||||
If you need to use `Ingress`, we can achieve the same efficiency for IP addresses by using the nginx ingress controller. This can be enabled by passing `-var ingress_type=nginx`.
|
If you need to use `Ingress`, we can achieve the same efficiency for IP addresses by using the nginx ingress controller. This can be enabled by passing `-var ingress_type=nginx`. If you need to use the built-in ingress controller instead of nginx you can set `-var ingress_type=gce` but then each `Ingress` will cost 1 IP address.
|
||||||
|
|
||||||
Clean Up
|
Clean Up
|
||||||
========
|
========
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# TODO: put IP address ranges into variables
|
||||||
terraform {
|
terraform {
|
||||||
backend "gcs" {
|
backend "gcs" {
|
||||||
bucket = "tf-state-4b00"
|
bucket = "tf-state-4b00"
|
||||||
@ -50,8 +51,8 @@ variable "ingress_type" {
|
|||||||
default = "gateway"
|
default = "gateway"
|
||||||
|
|
||||||
validation {
|
validation {
|
||||||
condition = contains(["gateway", "nginx"], var.ingress_type)
|
condition = contains(["gateway", "nginx", "gce"], var.ingress_type)
|
||||||
error_message = "Must be either \"gateway\" or \"nginx\"."
|
error_message = "Must be either \"gateway\", \"nginx\", or \"gce\"."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user