Delete setting-up-ingress-static-ip.md (#186)

This is a duplicate of https://github.com/knative/docs/blob/master/serving/
This commit is contained in:
Ivan Nikittin 2018-07-18 17:05:32 -07:00 committed by Google Prow Robot
parent 834b964e0f
commit ada4aef803
1 changed files with 0 additions and 53 deletions

View File

@ -1,53 +0,0 @@
# Setting Up Static IP for Knative Gateway
Knative uses a shared Gateway to serve all incoming traffic within Knative
service mesh, which is the `knative-shared-gateway` Gateway under
"knative-serving" namespace.
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)
### Prerequisite: Reserve a static IP
The instructions to reserve a static IP address are cloud provider specific:
#### 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** 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
### Step 1: Update external IP of "knative-ingressgateway" service
Run following command to reset the external IP for the
"knative-ingressgateway" service to the static IP you reserved.
```shell
kubectl patch svc knative-ingressgateway -n istio-system \
--patch '{"spec": { "loadBalancerIP": "<your-reserved-static-ip>" }}'
```
### Step 2: Verify static IP address of knative-ingressgateway service
**It may take several minutes before the ingress gateway picks up the new assigned static IP address.**
You can check the external IP of the "knative-ingressgateway" service with:
```shell
kubectl get svc knative-ingressgateway -n istio-system
```
The result should be something like
```
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
knative-ingressgateway LoadBalancer 10.50.250.120 35.210.48.100 80:32380/TCP,443:32390/TCP,32400:32400/TCP 5h
```