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
Harvester's OS has an immutable design, which means most files in the OS revert to their pre-configured state after a reboot. The Harvester OS loads the pre-configured values of system components from configuration files during the boot time.
15
+
Harvester's OS has an immutable design, which means most files in the OS revert to their pre-configured state after a reboot. The Harvester OS loads the pre-configured values of system components from configuration files during the boot time.
16
16
17
-
This page describes how to edit some of the most-requested Harvester configurations. To update a configuration, you must first update the runtime value in the system and then update configuration files to make the changes persistent between reboots.
17
+
This page describes how to edit some of the most-requested Harvester configurations. To update a configuration, you must first update the runtime value in the system and then update configuration files to make the changes persistent between reboots.
18
+
19
+
One notable exception to this starting in Harvester v1.7.0 is network configuration, as the `/etc/NetworkManager` directory was added to the list of persistent paths. This means that changes to network configuration made using the `nmcli` tool will persist immediately.
18
20
19
21
:::note
20
22
21
23
If you upgrade from a version before `v1.1.2`, the `cloud-init` file in examples will be `/oem/99_custom.yaml`. Please substitute the value if needed.
22
24
23
25
:::
24
26
25
-
## DNS servers
27
+
## Password of user `rancher`
26
28
27
29
### Runtime change
28
30
29
-
1. Log in to a Harvester node and become root. See [how to log into a Harvester node](../troubleshooting/os.md#how-to-log-in-to-a-harvester-node) for more details.
30
-
1. Edit `/etc/sysconfig/network/config` and update the following line. Use a space to separate DNS server addresses if there are multiple servers.
31
-
32
-
```
33
-
NETCONFIG_DNS_STATIC_SERVERS="8.8.8.8 1.1.1.1"
34
-
```
35
-
36
-
1. Update and reload the configuration with the following command:
37
-
38
-
```
39
-
netconfig update
40
-
```
41
-
42
-
1. Confirm the file `/etc/resolv.conf` contains the correct DNS servers with the `cat` command:
1. Confirm rke2-coredns was rolled out successfully:
52
-
```
53
-
kubectl rollout status deployment/rke2-coredns-rke2-coredns -n kube-system
54
-
```
31
+
1. Log in to a Harvester node as user `rancher`. See [how to log into a Harvester node](../troubleshooting/os.md#how-to-log-in-to-a-harvester-node) for more details.
32
+
1. To reset the password for the user `rancher`, run the command `passwd`.
55
33
56
34
### Configuration persistence
57
35
58
-
Beginning with v1.1.2, the persistent name of the cloud-init file is `/oem/90_custom.yaml`. Harvester now uses a newer version of Elemental, which creates the file during installation.
59
-
60
-
When upgrading from an earlier version to `v1.1.2` or later, Harvester retains the old file name (`/oem/99_custom.yaml`) to avoid confusion. You can manually rename the file to `/oem/90_custom.yaml` if necessary.
61
-
62
36
1. Backup the elemental `cloud-init` file `/oem/90_custom.yaml` as follows:
1. Edit `/oem/90_custom.yaml` and update the value under the yaml path `stages.initramfs[0].commands`. The `commands` array must contain a line to manipulate the `NETCONFIG_DNS_STATIC_SERVERS` config. Add the line if the line doesn't exist.
69
-
70
-
The following example adds a line to change the `NETCONFIG_DNS_STATIC_SERVERS` config:
71
-
72
-
```
73
-
stages:
74
-
initramfs:
75
-
- commands:
76
-
- sed -i 's/^NETCONFIG_DNS_STATIC_SERVERS.*/NETCONFIG_DNS_STATIC_SERVERS="8.8.8.8 1.1.1.1"/' /etc/sysconfig/network/config
77
-
```
78
-
79
-
Replace the DNS server addresses and save the file. Harvester sets up new servers after rebooting.
80
-
42
+
1. Edit `/oem/90_custom.yaml` and update the yaml path `stages.initramfs[0].users.rancher.passwd`. Refer to the configuration [`os.password`](./harvester-configuration.md#ospassword) for details on how to specify the password in an encrypted form.
81
43
82
44
## NTP servers
83
45
84
-
We introduce the new mechanism for the NTP configuration in Harvester v1.2.0.
46
+
We introduced a new mechanism for NTP configuration in Harvester v1.2.0.
85
47
86
-
For more information about NTP settings in Harvester v1.2.0 and later versions, see the [NTP servers](../host/host.md#ntp-configuration).
87
-
88
-
## Password of user `rancher`
48
+
For more information about NTP settings in Harvester v1.2.0 and later versions, see [NTP servers](../host/host.md#ntp-configuration).
89
49
90
-
### Runtime change
50
+
## DNS servers
91
51
92
-
1. Log in to a Harvester node as user `rancher`. See [how to log into a Harvester node](../troubleshooting/os.md#how-to-log-in-to-a-harvester-node) for more details.
93
-
1. To reset the password for the user `rancher`, run the command `passwd`.
52
+
1. Log in to a Harvester node and become root. See [how to log into a Harvester node](../troubleshooting/os.md#how-to-log-in-to-a-harvester-node) for more details.
53
+
1. If the management interface _is not_ configured to use a VLAN, run the following command:
1. Backup the elemental `cloud-init` file `/oem/90_custom.yaml` as follows:
59
+
1. If the management interface _is_ configured to use a VLAN, run the following commands. Replace `VLAN_ID` with the actal ID of the VLAN. If in doubt, run `nmcli con` to see the configured connections and devices.
1. Edit `/oem/90_custom.yaml` and update the yaml path `stages.initramfs[0].users.rancher.passwd`. Refer to the configuration [`os.password`](./harvester-configuration.md#ospassword) for details on how to specify the password in an encrypted form.
65
+
1. Confirm the file `/etc/resolv.conf` contains the correct DNS servers with the `cat` command:
1. Confirm rke2-coredns was rolled out successfully:
75
+
```
76
+
kubectl rollout status deployment/rke2-coredns-rke2-coredns -n kube-system
77
+
```
105
78
106
79
## Bonding slaves
107
80
108
81
You can update the slave interfaces of Harvester's management bonding interface `mgmt-bo`.
109
82
110
-
### Runtime change
111
-
112
83
1. Log in to a Harvester node and become root. See [how to log into a Harvester node](../troubleshooting/os.md#how-to-log-in-to-a-harvester-node) for more details.
113
84
1. Identify the interface names with the following command:
114
85
115
86
```
116
-
ip a
117
-
```
118
-
119
-
1. Edit `/etc/sysconfig/network/ifcfg-mgmt-bo` and update the lines associated with bonding slaves and bonding mode:
1. Edit `/oem/90_custom.yaml` and update the yaml path `stages.initramfs[0].files`. More specifically, update the content of the `/etc/sysconfig/network/ifcfg-mgmt-bo` file and edit the `BONDING_SLAVE_X` and `BONDING_MODULE_OPTS` entries accordingly:
If you didn't select an interface during installation, you must add an entry to initialize the interface. Please check the `/etc/sysconfig/network/ifcfg-ens6` file creation in the above example. The file name should be `/etc/sysconfig/network/ifcfg-<interface-name>`.
Copy file name to clipboardExpand all lines: docs/logging/harvester-logging.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ In Harvester's practice, the `Logging`, `Audit` and `Event` shares one architect
47
47
The Harvester logging infrastructure allows you to aggregate Harvester logs into an external service such as [Graylog](https://www.graylog.org), [Elasticsearch](https://www.elastic.co/elasticsearch/), [Splunk](https://www.splunk.com/), [Grafana Loki](https://grafana.com/oss/loki/) and others.
48
48
49
49
### Collected Logs
50
+
50
51
See below for a list logs that are collected:
51
52
- Logs from all cluster `Pods`
52
53
- Kernel logs from each `node`
@@ -55,7 +56,7 @@ See below for a list logs that are collected:
Copy file name to clipboardExpand all lines: docs/networking/best-practice.md
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,35 +40,38 @@ You can follow the steps below and run them in each node step by step.
40
40
41
41
Before any action is taken, it is important to collect the current network information and status.
42
42
43
-
- Harvester network configuration: By default, Harvester creates a bond interface named `mgmt-bo` for the management network and one new bond interface for each cluster network. Harvester saves network configuration details in the file `/oem/90_custom.yaml`.
43
+
- Harvester network configuration: By default, Harvester creates a bond interface named `mgmt-bo` for the management network. On top of that is a bridge interface named `mgmt-br`, which may optionally use a VLAN. There is also one new bond interface for each cluster network. The current connection details can be views using the `nmcli` tool.
44
44
45
-
Example: A NIC named `ens3` was added to the `mgmt-bo` bond interface.
ethernet (ixgbe), 5C:B9:01:89:C2:F5, hw, sriov, mtu 1500
72
+
master mgmt-bo
73
+
74
+
...
72
75
```
73
76
74
77
- Physical NICs: You can use the command `ip link` to retrieve related information, including the state of each NIC and the corresponding master (if applicable).
0 commit comments