Update setting-up-ingress-static-ip.md

This commit is contained in:
Ryan Gregg 2018-07-18 10:52:18 -07:00 committed by GitHub
parent 839b2cf822
commit fc35fa2a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 12 deletions

View File

@ -1,27 +1,31 @@
# Setting Up Static IP for Knative Gateway # Setting Up Static IP for Knative Gateway
Knative uses a shared Gateway to serve all incoming traffic within Knative Knative uses a shared Gateway to serve all incoming traffic within Knative
service mesh, which is the "knative-shared-gateway" Gateway under service mesh, which is the `knative-shared-gateway` Gateway under
"knative-serving" namespace. The IP address to access the gateway is the "knative-serving" namespace.
external IP address of the "knative-ingressgateway" service under the
"istio-system" namespace. So in order to set static IP for the Knative shared
gateway, you just need to set the external IP address of the
"knative-ingressgateway" service to the static IP you need.
Platforms: The IP address to access the gateway is the
external IP address of the `knative-ingressgateway` service under the
`istio-system` namespace. In order to set static IP for the Knative shared
gateway, you need to assign the external IP address of the
`knative-ingressgateway` service to the static IP you had reserved.
Jump to your platform:
* [Google Kubernetes Engine](#google-kubernetes-engine-gke) * [Google Kubernetes Engine](#google-kubernetes-engine-gke)
## Prerequisites ### Prerequisite: Reserve a static IP
### Prerequisite 1: Reserve a static IP The instructions to reserve a static IP address are cloud provider specific:
#### Google Kubernetes Engine (GKE) #### Google Kubernetes Engine (GKE)
If you are running Knative cluster on GKE, you can follow the [instructions](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#reserve_new_static) to reserve a REGIONAL If you are running Knative cluster on GKE, you can follow the
IP address. The region of the IP address should be the region your Knative [instructions](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#reserve_new_static)
cluster is running in (e.g. us-east1, us-central1, etc.). to reserve a **REGIONAL** IP address. The region of the IP address must
be the same region your Kubernetes Engine cluster is running in
(e.g. us-east1, us-central1, etc.).
## Set Up Static IP for Knative Gateway ## Set Up Static IP for Knative Gateway