mirror of https://github.com/knative/docs.git
Make updating custom-domain configmap clearer (#1811)
The current documentation is confusing because it does not show the contents of the default configmap : https://github.com/knative/serving/blob/master/config/config-domain.yaml The default configmap has an additional `_example` key in front of the domain.
This commit is contained in:
parent
65f7b402fe
commit
6df49ad80c
|
@ -20,20 +20,26 @@ To change the {default-domain} value there are a few steps involved:
|
||||||
kubectl edit cm config-domain --namespace knative-serving
|
kubectl edit cm config-domain --namespace knative-serving
|
||||||
```
|
```
|
||||||
|
|
||||||
This command opens your default text editor and allows you to edit the config
|
This command opens your default text editor and allows you to edit the [config
|
||||||
map.
|
map](https://github.com/knative/serving/blob/master/config/config-domain.yaml).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
data:
|
data:
|
||||||
example.com: ""
|
_example: |
|
||||||
|
################################
|
||||||
|
# #
|
||||||
|
# EXAMPLE CONFIGURATION #
|
||||||
|
# #
|
||||||
|
################################
|
||||||
|
# ...
|
||||||
|
example.com: |
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
[...]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Edit the file to replace `example.com` with the domain you'd like to use and
|
1. Edit the file to replace `example.com` with the domain you'd like to use,
|
||||||
save your changes. In this example, we configure `mydomain.com` for all
|
remove the `_example` key and save your changes.
|
||||||
routes:
|
In this example, we configure `mydomain.com` for all routes:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
Loading…
Reference in New Issue