mirror of https://github.com/knative/docs.git
repush: (#3171)
This commit is contained in:
parent
993578e315
commit
71146847f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue