mirror of https://github.com/knative/docs.git
add docs for hostAliases feature gate (#3098)
This commit is contained in:
parent
1c0bef1a05
commit
0d2b124d9c
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue