Document webhook and kube-aggerator port configuration (#14674)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
71a7828152
commit
21d3206ffd
@@ -224,6 +224,55 @@ If you are not running kube-proxy on a host running the API server, then you mus
|
||||
|
||||
{{% /capture %}}
|
||||
|
||||
### Register APIService objects
|
||||
|
||||
You can dynamically configure what client requests are proxied to extension
|
||||
apiserver. The following is an example registration:
|
||||
|
||||
```yaml
|
||||
|
||||
apiVersion: apiregistration.k8s.io/v1
|
||||
kind: APIService
|
||||
metadata:
|
||||
name: <name of the registration object>
|
||||
spec:
|
||||
group: <API group name this extension apiserver hosts>
|
||||
version: <API version this extension apiserver hosts>
|
||||
groupPriorityMinimum: <priority this APIService for this group, see API documentation>
|
||||
versionPriority: <prioritizes ordering of this version within a group, see API documentation>
|
||||
service:
|
||||
namespace: <namespace of the extension apiserver service>
|
||||
name: <name of the extension apiserver service>
|
||||
caBundle: <pem encoded ca cert that signs the server cert used by the webhook>
|
||||
```
|
||||
|
||||
#### Contacting the extension apiserver
|
||||
|
||||
Once the Kubernetes apiserver has determined a request should be sent to a extension apiserver,
|
||||
it needs to know how to contact it.
|
||||
|
||||
The `service` stanza is a reference to the service for a extension apiserver.
|
||||
The service namespace and name are required. The port is optional and defaults to 443.
|
||||
The path is optional and defaults to "/".
|
||||
|
||||
Here is an example of an extension apiserver that is configured to be called on port "1234"
|
||||
at the subpath "/my-path", and to verify the TLS connection against the ServerName
|
||||
`my-service-name.my-service-namespace.svc` using a custom CA bundle.
|
||||
|
||||
```yaml
|
||||
apiVersion: apiregistration.k8s.io/v1
|
||||
kind: APIService
|
||||
...
|
||||
spec:
|
||||
...
|
||||
service:
|
||||
namespace: my-service-namespace
|
||||
name: my-service-name
|
||||
port: 1234
|
||||
caBundle: "Ci0tLS0tQk...<base64-encoded PEM bundle>...tLS0K"
|
||||
...
|
||||
```
|
||||
|
||||
{{% capture whatsnext %}}
|
||||
|
||||
* [Setup an extension api-server](/docs/tasks/access-kubernetes-api/setup-extension-api-server/) to work with the aggregation layer.
|
||||
|
||||
Reference in New Issue
Block a user