add docs for hostAliases feature gate (#3098)

This commit is contained in:
Dan Wilson 2020-12-15 09:51:58 -08:00 committed by GitHub
parent 1c0bef1a05
commit 0d2b124d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -118,6 +118,26 @@ spec:
- e2e-az2
```
## Kubernetes Host Aliases
* **Type**: extension
* **ConfigMap key:** `kubernetes.podspec-hostaliases`
This flag controls whether [host aliases](https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/) can be specified.
```yaml
apiVersion: serving.knative.dev/v1
kind: Service
...
spec:
template:
spec:
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
```
## Kubernetes Node Selector
* **Type**: extension
* **ConfigMap key:** `kubernetes.podspec-nodeselector`