This commit is contained in:
Victor Agababov 2021-01-19 15:46:53 -08:00 committed by GitHub
parent 993578e315
commit 71146847f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -27,18 +27,18 @@ inside the cluster:
## Label a service to be cluster-local
To configure a KService to only be available on the cluster-local network (and
To configure a Knative service to only be available on the cluster-local network (and
not on the public Internet), you can apply the
`networking.knative.dev/visibility=cluster-local` label to the KService, Route or
Kubernetes Service object.
`networking.knative.dev/visibility=cluster-local` label to the Knative service, route or
Kubernetes service object.
To label the KService:
To label the Knative service:
```shell
kubectl label kservice ${KSVC_NAME} networking.knative.dev/visibility=cluster-local
```
To label a route when you used Route directly without KService:
To label a route when the route is used directly without a Knative service:
```shell
kubectl label route ${ROUTE_NAME} networking.knative.dev/visibility=cluster-local
@ -65,7 +65,7 @@ You can then verify that the change has been made by verifying the URL for the
helloworld-go service:
```shell
kubectl get ksvc helloworld-go
kubectl get kservice helloworld-go
NAME URL LATESTCREATED LATESTREADY READY REASON
helloworld-go http://helloworld-go.default.svc.cluster.local helloworld-go-2bz5l helloworld-go-2bz5l True