You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/microshift-config-yaml.adoc
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,13 @@
8
8
9
9
{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}.
10
10
11
+
//include admonition snippet about waiting for greenboot
12
+
11
13
[id="microshift-yaml-default_{context}"]
12
14
== 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}.
14
16
15
-
.Default YAML file example
17
+
.Default YAML values example
16
18
[source,yaml]
17
19
----
18
20
dns:
@@ -27,20 +29,36 @@ node:
27
29
hostnameOverride: "" <5>
28
30
nodeIP: "" <6>
29
31
apiServer:
30
-
subjectAltNames: [] <7>
32
+
advertiseAddress: 10.44.0.0 <7>
33
+
subjectAltNames: [] <8>
31
34
debugging:
32
-
logLevel: "Normal" <8>
35
+
logLevel: "Normal" <9>
33
36
----
34
37
<1> Base domain of the cluster. All managed DNS records will be subdomains of this base.
35
38
<2> A block of IP addresses from which Pod IP addresses are allocated.
36
39
<3> A block of virtual IP addresses for Kubernetes services.
37
40
<4> The port range allowed for Kubernetes services of type NodePort.
38
41
<5> The name of the node. The default value is the hostname.
39
42
<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`.
42
46
43
47
[IMPORTANT]
44
48
====
45
49
Restart {product-title} after changing any configuration settings to have them take effect. {product-title} reads the configuration file only on start.
46
50
====
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`.
0 commit comments