-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update the instruction on how to use cluster local gateway #2090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the instruction on how to use cluster local gateway #2090
Conversation
|
/lgtm |
abrennan89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial review comments
docs/install/installing-istio.md
Outdated
| installation method is not ensured. For a production-ready installation, see the `helm` installation method above. | ||
| If you follow either of the above steps, your service and deployment for the local gateway are both named `cluster-local-gateway`, | ||
| and you do not need to update gateway configmap `config-istio` under `knative-serving` namespace, because Knative Serving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New sentence for readability;
"You do not need to update the config-istio configmap because Knative Serving can use the local gateway cluster-local-gateway by default."
docs/install/installing-istio.md
Outdated
| and you do not need to update gateway configmap `config-istio` under `knative-serving` namespace, because Knative Serving | ||
| can by default use the local gateway with the name `cluster-local-gateway`. | ||
| However, if you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a new heading here to call attention to the user story / task?
e.g. Updating the config-istio configmap to use a non-default local gateway
@samodell wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to that idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove "However" here
docs/install/installing-istio.md
Outdated
| can by default use the local gateway with the name `cluster-local-gateway`. | ||
| However, if you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you | ||
| need to update gateway configmap `config-istio` under `knative-serving` namespace. Run the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Run the following command
- Replace X field with the custom service
Split this into numbered steps to make it more like a procedure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
docs/install/installing-istio.md
Outdated
| and you do not need to update gateway configmap `config-istio` under `knative-serving` namespace, because Knative Serving | ||
| can by default use the local gateway with the name `cluster-local-gateway`. | ||
| However, if you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to that idea!
docs/install/installing-istio.md
Outdated
| can by default use the local gateway with the name `cluster-local-gateway`. | ||
| However, if you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you | ||
| need to update gateway configmap `config-istio` under `knative-serving` namespace. Run the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
docs/install/installing-istio.md
Outdated
| **Note:** This method is only for development purposes. The production readiness of the above | ||
| installation method is not ensured. For a production-ready installation, see the `helm` installation method above. | ||
| If you follow either of the above steps, your service and deployment for the local gateway are both named `cluster-local-gateway`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of "either of the above steps," let's clarify the exact types of installs we're referring to -- "If you installed Istio via METHOD or METHOD..."
|
Hi @houshengbo , can you respond to the review comments when you have some time? |
carieshmarie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Vincent. Looking good - just have one tiny nit - can you incorporate my requested change?
Thanks!
docs/install/installing-istio.md
Outdated
| ### Updating the `config-istio` configmap to use a non-default local gateway | ||
| However, if you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| However, if you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you | |
| If you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. @carieshmarie
docs/install/installing-istio.md
Outdated
| kubectl apply -f https://raw.githubusercontent.com/knative/serving/master/third_party/${VERSION}/istio-knative-extras.yaml | ||
| ``` | ||
| **Note:** This method is only for development purposes. The production readiness of the above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to overstate, use something more succinct, e.g.
Note: This installation method is not production ready and is for development purposes only. For a more stable method, use Helm. For more information about the Helm installation method, see [link to helm docs].
docs/install/installing-istio.md
Outdated
| installation method is not ensured. For a production-ready installation, see the `helm` installation method above. | ||
| After you install the cluster local gateway, your service and deployment for the local gateway are both named `cluster-local-gateway`. | ||
| You do not need to update the `config-istio` configmap under `knative-serving` namespace, because Knative Serving can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"under the knative-serving namespace"
"the local gateway cluster-local-gateway by default"
docs/install/installing-istio.md
Outdated
| ### Updating the `config-istio` configmap to use a non-default local gateway | ||
| #### Update Gateway Configmap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this heading, there's no need to have two headings below each other with no text in between
docs/install/installing-istio.md
Outdated
| #### Update Gateway Configmap | ||
| If you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a custom service"
docs/install/installing-istio.md
Outdated
| #### Update Gateway Configmap | ||
| If you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you | ||
| need to update gateway configmap `config-istio` under `knative-serving` namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the knative-serving namespace"
docs/install/installing-istio.md
Outdated
| If you create custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you | ||
| need to update gateway configmap `config-istio` under `knative-serving` namespace. | ||
| 1. Run the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't add anything, instead say something like
- Edit the
config-istioconfigmap:
docs/install/installing-istio.md
Outdated
| ``` | ||
| 2. Replace the `local-gateway.knative-serving.cluster-local-gateway` field with the custom service. If you name both | ||
| of the service and deployment after `custom-local-gateway` under the namespace `istio-system`, it should be updated to: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove 'of' and 'after'
docs/install/installing-istio.md
Outdated
| #### Update Knative Gateway | ||
| If both of the custom service and deployment are labeled with `custom: custom-local-gateway`, not the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove 'of'
docs/install/installing-istio.md
Outdated
| custom: custom-local-gateway | ||
| ``` | ||
| If there is a change in service ports (compared with that of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with -> to
abrennan89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments
abrennan89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason I can't comment on the configuring DNS part, so I'll comment here.
"Knative dispatches to different services based on their hostname, so it greatly
simplifies things to have DNS properly configured. For this, we must look up the
external IP address that Istio received. This can be done with the following
command:"
Maybe update to something like...
"You must configure your DNS settings to allow Knative to dispatch services based on their hostname.
To do this, you must look up the external IP address received by Istio by entering the following command:"
Some other minor comments in the doc too, but otherwise lgtm! Thanks Vincent.
docs/install/installing-istio.md
Outdated
| **Note:** This method is only for development purposes. The production readiness of the above | ||
| installation method is not ensured. For a production-ready installation, see the `helm` installation method above. | ||
| __Note:__ This installation method is not production ready and is for development purposes only. For a more stable method, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change the note format to __ here?
docs/install/installing-istio.md
Outdated
| ``` | ||
| If both the custom service and deployment are labeled with `custom: custom-local-gateway`, not the default | ||
| `istio: cluster-local-gateway`, you need to update gateway instance `cluster-local-gateway` in `knative-serving` namespace: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the knative-serving namespace
|
@abrennan89 Thx, I just updated the changes. |
|
/lgtm |
|
@houshengbo is this PR still WIP? |
|
@abrennan89 I have just rebased and submitted. |
|
@houshengbo |
|
@nak3 It is similar, but it is about |
abrennan89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@houshengbo a few more minor suggestions that you should be able to just accept as commits, then this should be OK to merge.
@duglin do you want to take a quick look to make sure this addresses the linked issue?
Thanks.
docs/install/installing-istio.md
Outdated
| If you create a custom service and deployment for local gateway with a name other than `cluster-local-gateway`, you | ||
| need to update gateway configmap `config-istio` under the `knative-serving` namespace. | ||
|
|
||
| 1. Edit the 1config-istio1 configmap: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 1. Edit the 1config-istio1 configmap: | |
| 1. Edit the `config-istio` configmap: |
docs/install/installing-istio.md
Outdated
| ``` | ||
|
|
||
| If both the custom service and deployment are labeled with `custom: custom-local-gateway`, not the default | ||
| `istio: cluster-local-gateway`, you need to update gateway instance `cluster-local-gateway` in the `knative-serving` namespace: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `istio: cluster-local-gateway`, you need to update gateway instance `cluster-local-gateway` in the `knative-serving` namespace: | |
| `istio: cluster-local-gateway`, you must update gateway instance `cluster-local-gateway` in the `knative-serving` namespace: |
docs/install/installing-istio.md
Outdated
| Knative dispatches to different services based on their hostname, so it greatly | ||
| simplifies things to have DNS properly configured. For this, we must look up the | ||
| external IP address that Istio received. This can be done with the following | ||
| command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Knative dispatches to different services based on their hostname, so it greatly | |
| simplifies things to have DNS properly configured. For this, we must look up the | |
| external IP address that Istio received. This can be done with the following | |
| command: | |
| Knative dispatches to different services based on their hostname, so it is recommended to have DNS properly configured. | |
| To do this, begin by looking up the external IP address that Istio received: |
docs/install/installing-istio.md
Outdated
| This external IP can be used with your DNS provider with a wildcard `A` record; | ||
| however, for a basic functioning DNS setup (not suitable for production!) this | ||
| external IP address can be used with `xip.io` in the `config-domain` ConfigMap | ||
| in `knative-serving`. You can edit this with the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| This external IP can be used with your DNS provider with a wildcard `A` record; | |
| however, for a basic functioning DNS setup (not suitable for production!) this | |
| external IP address can be used with `xip.io` in the `config-domain` ConfigMap | |
| in `knative-serving`. You can edit this with the following command: | |
| This external IP can be used with your DNS provider with a wildcard `A` record. However, for a basic non-production set up, this external IP address can be used with `xip.io` in the `config-domain` ConfigMap | |
| in `knative-serving`. | |
| You can edit this by using the following command: |
docs/install/installing-istio.md
Outdated
| ``` | ||
|
|
||
| After you install the cluster local gateway, your service and deployment for the local gateway are both named `cluster-local-gateway`. | ||
| You do not need to update the `config-istio` configmap under the `knative-serving` namespace, because Knative Serving can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence, while I assume is true, feels a bit out of place because it assumes the reader wanted to update the configMap - but why would they? A newbie wouldn't have even thought about doing this so I don't think there's any need to mention it. I think you can remove it.
docs/install/installing-istio.md
Outdated
| kubectl edit configmap config-istio -n knative-serving | ||
| ``` | ||
|
|
||
| 2. Replace the `local-gateway.knative-serving.cluster-local-gateway` field with the custom service. If you name both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add As an example, in front of the If you name both... sentence so make it clear that custom-local-gateway is just an example.
docs/install/installing-istio.md
Outdated
| custom-local-gateway.istio-system.svc.cluster.local | ||
| ``` | ||
|
|
||
| If both the custom service and deployment are labeled with `custom: custom-local-gateway`, not the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have missed it, but why would they have this label? Did we talk about it some place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should surely add "As an example" at the beginning. This demonstrates how users should change the label of the cluster-local-gateway into something else.
|
@abrennan89 @duglin I have changed the PR based on the comments. |
|
/lgtm Thanks @houshengbo ! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abrennan89, houshengbo, tcnghia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #1402
Proposed Changes
config-istiounder the namespaceknative-serving, if the service name for the local gateway is notcluster-local-gateway.