From a484b2e772e68ddca8ff97e870291000679b74d5 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 29 Jul 2020 23:01:59 +0900 Subject: [PATCH] Label to k8s service instead of route (#2710) --- docs/serving/cluster-local-route.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/serving/cluster-local-route.md b/docs/serving/cluster-local-route.md index 02c5baa25..da94d6e62 100644 --- a/docs/serving/cluster-local-route.md +++ b/docs/serving/cluster-local-route.md @@ -47,7 +47,7 @@ kubectl label route ${ROUTE_NAME} serving.knative.dev/visibility=cluster-local To label a Kubernetes service: ```shell -kubectl label route ${SERVICE_NAME} serving.knative.dev/visibility=cluster-local +kubectl label service ${SERVICE_NAME} serving.knative.dev/visibility=cluster-local ``` By labeling the Kubernetes service it allows you to restrict visibility in a more