Add service path to CRD webhook conversion example (#12542)

* Add service path to CRD webhook conversion example

* Update wording in CRD conversion example to indicate it is serving traffic

Co-Authored-By: nrfox <nickfox25@gmail.com>
This commit is contained in:
Nick Fox
2019-02-17 10:36:11 -05:00
committed by Kubernetes Prow Robot
parent 2aba9bd333
commit 60b804ec8f
@@ -185,7 +185,7 @@ how to [authenticate API servers](/docs/reference/access-authn-authz/extensible-
### Deploy the conversion webhook service ### Deploy the conversion webhook service
Documentation for deploying the conversion webhook is the same as for the [admission webhook example service](/docs/reference/access-authn-authz/extensible-admission-controllers/#deploy_the_admission_webhook_service). Documentation for deploying the conversion webhook is the same as for the [admission webhook example service](/docs/reference/access-authn-authz/extensible-admission-controllers/#deploy_the_admission_webhook_service).
The assumption for next sections is that the conversion webhook server is deployed to a service named `example-conversion-webhook-server` in `default` namespace. The assumption for next sections is that the conversion webhook server is deployed to a service named `example-conversion-webhook-server` in `default` namespace and serving traffic on path `/crdconvert`.
{{< note >}} {{< note >}}
When the webhook server is deployed into the Kubernetes cluster as a When the webhook server is deployed into the Kubernetes cluster as a
@@ -242,6 +242,8 @@ spec:
service: service:
namespace: default namespace: default
name: example-conversion-webhook-server name: example-conversion-webhook-server
# path is the url the API server will call. It should match what the webhook is serving at. The default is '/'.
path: /crdconvert
caBundle: <pem encoded ca cert that signs the server cert used by the webhook> caBundle: <pem encoded ca cert that signs the server cert used by the webhook>
# either Namespaced or Cluster # either Namespaced or Cluster
scope: Namespaced scope: Namespaced