mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 09:46:53 +01:00
47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * microshift/using-config-tools.adoc
|
|
|
|
:_content-type: CONCEPT
|
|
[id="microshift-config-yaml_{context}"]
|
|
= Using a YAML configuration file
|
|
|
|
{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}.
|
|
|
|
[id="microshift-yaml-default_{context}"]
|
|
== Default settings
|
|
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}.
|
|
|
|
.Default YAML file example
|
|
[source,yaml]
|
|
----
|
|
dns:
|
|
baseDomain: microshift.example.com <1>
|
|
network:
|
|
clusterNetwork:
|
|
- cidr: 10.42.0.0/16 <2>
|
|
serviceNetwork:
|
|
- 10.43.0.0/16 <3>
|
|
serviceNodePortRange: 30000-32767 <4>
|
|
node:
|
|
hostnameOverride: "" <5>
|
|
nodeIP: "" <6>
|
|
apiServer:
|
|
subjectAltNames: [] <7>
|
|
debugging:
|
|
logLevel: "Normal" <8>
|
|
----
|
|
<1> Base domain of the cluster. All managed DNS records will be subdomains of this base.
|
|
<2> A block of IP addresses from which Pod IP addresses are allocated.
|
|
<3> A block of virtual IP addresses for Kubernetes services.
|
|
<4> The port range allowed for Kubernetes services of type NodePort.
|
|
<5> The name of the node. The default value is the hostname.
|
|
<6> The IP address of the node. The default value is the IP address of the default route.
|
|
<7> Subject Alternative Names for API server certificates.
|
|
<8> Log verbosity. Valid values for this field are `Normal`, `Debug`, `Trace`, or `TraceAll`.
|
|
|
|
[IMPORTANT]
|
|
====
|
|
Restart {product-title} after changing any configuration settings to have them take effect. {product-title} reads the configuration file only on start.
|
|
====
|