Skip to content

Commit 05b9132

Browse files
authored
Merge pull request #65057 from ShaunaDiaz/OSDOCS-7767
OSDOCS-7767: add doc for advertiseAddress flag
2 parents 1e0e884 + 9d854e6 commit 05b9132

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

modules/microshift-config-yaml.adoc

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88

99
{product-title} searches for a configuration file in the user-specific directory, `~/.microshift/config.yaml`, then the system-wide `/etc/microshift/config.yaml` directory. You must create the configuration file and specify any settings that should override the defaults before starting {product-title}.
1010

11+
//include admonition snippet about waiting for greenboot
12+
1113
[id="microshift-yaml-default_{context}"]
1214
== Default settings
13-
If you do not create a `config.yaml` file, the default values are used. The following example configuration contains the default settings. You must change any settings that should override the defaults before starting {product-title}.
15+
If you do not create a `config.yaml` file, the default values are used. The following example configuration shows the default settings. You must create a custom `config.yaml` file and change any settings that should override the defaults before starting {product-title}.
1416

15-
.Default YAML file example
17+
.Default YAML values example
1618
[source,yaml]
1719
----
1820
dns:
@@ -27,20 +29,36 @@ node:
2729
hostnameOverride: "" <5>
2830
nodeIP: "" <6>
2931
apiServer:
30-
subjectAltNames: [] <7>
32+
advertiseAddress: 10.44.0.0 <7>
33+
subjectAltNames: [] <8>
3134
debugging:
32-
logLevel: "Normal" <8>
35+
logLevel: "Normal" <9>
3336
----
3437
<1> Base domain of the cluster. All managed DNS records will be subdomains of this base.
3538
<2> A block of IP addresses from which Pod IP addresses are allocated.
3639
<3> A block of virtual IP addresses for Kubernetes services.
3740
<4> The port range allowed for Kubernetes services of type NodePort.
3841
<5> The name of the node. The default value is the hostname.
3942
<6> The IP address of the node. The default value is the IP address of the default route.
40-
<7> Subject Alternative Names for API server certificates.
41-
<8> Log verbosity. Valid values for this field are `Normal`, `Debug`, `Trace`, or `TraceAll`.
43+
<7> A string that specifies the IP address from which the API server is advertised to members of the cluster. The default value is calculated based on the address of the service network.
44+
<8> Subject Alternative Names for API server certificates.
45+
<9> Log verbosity. Valid values for this field are `Normal`, `Debug`, `Trace`, or `TraceAll`.
4246

4347
[IMPORTANT]
4448
====
4549
Restart {product-title} after changing any configuration settings to have them take effect. {product-title} reads the configuration file only on start.
4650
====
51+
52+
[id="microshift-yaml-custom_{context}"]
53+
== Custom settings
54+
You must change any settings that should override the defaults before starting {product-title}.
55+
56+
advertiseAddress::
57+
The `apiserver.advertiseAddress` flag specifies the IP address on which to advertise the API server to members of the cluster. This address must be reachable by the cluster. You can set a custom IP address here, but you must also add the IP address to a host interface. Customizing this parameter preempts {product-title} from adding a default IP address to the `br-ex` network interface.
58+
+
59+
[IMPORTANT]
60+
====
61+
If you customize the `advertiseAddress` IP address, make sure it is reachable by the cluster when {product-title} starts by adding the IP address to a host interface.
62+
====
63+
+
64+
If unset, the default value is `10.44.0.0/32`. It will be set to the next immediate subnet after the service network. For example, when the service network is `10.43.0.0/16`, the `advertiseAddress` is set to `10.44.0.0/32`.

modules/microshift-configuring-ovn.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $ sudo cp /etc/microshift/ovn.yaml.default /etc/microshift/ovn.yaml
2424
$ cat /etc/microshift/ovn.yaml.default
2525
----
2626
+
27-
.Example 'yaml' configuration file with default maximum transmission unit (MTU) value
27+
.Example YAML file with default maximum transmission unit (MTU) value
2828
+
2929
[source,yaml]
3030
----

0 commit comments

Comments
 (0)