forked from harvester/ipxe-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.yml
163 lines (146 loc) · 4.98 KB
/
settings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
##########################################################################
# NOTE: this is a YAML file so please pay close attention to the leading #
# spaces as they are significant. #
##########################################################################
#
# harvester_iso_url
# harvester_kernel_url
# harvester_initrd_url
#
# Harvester media to install. The URL scheme can be either 'http', 'https', or
# 'file'. If the URL scheme is 'file', the given media will be copied from the
# local file system instead of downloading from a remote location.
harvester_iso_url: https://releases.rancher.com/harvester/master/harvester-master-amd64.iso
harvester_kernel_url: https://releases.rancher.com/harvester/master/harvester-master-vmlinuz-amd64
harvester_ramdisk_url: https://releases.rancher.com/harvester/master/harvester-master-initrd-amd64
harvester_rootfs_url: https://releases.rancher.com/harvester/master/harvester-master-rootfs-amd64.squashfs
#
# harvester_cluster_nodes
#
# NOTE: keep in mind that you need at least 3 nodes to make a cluster
#
harvester_cluster_nodes: 3
#
# network_config
#
# Harvester network configurations. Make sure the cluster IPs are on the same
# subnet as the DHCP server. Pre-assign the IPs and MACs for the Harvester
# nodes.
#
# NOTE: Random MAC addresses are generated with the following command:
# printf '02:00:00:%02X:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256))
# Thanks to https://stackoverflow.com/questions/8484877/mac-address-generator-in-python
# If any of the generated MAC addresses is in conflict with an existing one in
# your environment, please use the above command to regenerate and replace
# the conflicting one.
#
harvester_network_config:
# Run as an airgapped environment that only has internet connectivity through an HTTP proxy.
# The HTTP proxy runs on DHCP server using port 3128
offline: false
dhcp_server:
ip: 192.168.0.254
subnet: 192.168.0.0
netmask: 255.255.255.0
range: 192.168.0.50 192.168.0.130
https: false
# Change this to a custom DNS server if you need one for your DHCP scope
dns_server: 1.1.1.1
dns_servers:
# This is a list of DNS servers that will be included in your Harvester OS config
- 192.168.0.254
- 8.8.8.8
# Reserve these IPs for the Harvester cluster. Make sure these are outside
# the range of DHCP so they don't get served out by the DHCP server
vip:
ip: 192.168.0.131
mode: DHCP
mac: 02:00:00:03:3D:61
sftp: true
cluster:
# role: default, management, witness or worker
- ip: 192.168.0.30
mac: 02:00:00:0D:62:E2
cpu: 8
memory: 16384
disk_size: 500G
vagrant_interface: ens5
mgmt_interface: ens6
role: default
- ip: 192.168.0.31
mac: 02:00:00:35:86:92
cpu: 8
memory: 16384
disk_size: 500G
vagrant_interface: ens5
mgmt_interface: ens6
role: default
- ip: 192.168.0.32
mac: 02:00:00:2F:F2:2A
cpu: 8
memory: 16384
disk_size: 500G
vagrant_interface: ens5
mgmt_interface: ens6
role: default
- ip: 192.168.0.33
mac: 02:00:00:A7:E6:FF
cpu: 8
memory: 8192
disk_size: 500G
vagrant_interface: ens5
mgmt_interface: ens6
role: default
#
# harvester_config
#
# Harvester system configurations.
#
harvester_config:
# static token for cluster authentication
token: token
# Public keys to add to authorized_keys of each node.
ssh_authorized_keys:
# Vagrant default unsecured SSH public key
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
# password to for the `rancher` user to login to the Harvester nodes via SSH
password: p@ssword
# NTP servers
ntp_servers:
- 0.suse.pool.ntp.org
- 1.suse.pool.ntp.org
#
# harvester_node_config
#
# Harvester node-specific configurations.
#
harvester_node_config:
# number of CPUs assigned to each node
cpu: 8
# memory size for each node, in MBytes
memory: 8192
# disk size for each node
disk_size: 500G
#
# rancher_config
#
# Rancher setup on an independent node.
#
# Support Matrix: https://www.suse.com/suse-rancher/support-matrix/all-supported-versions
# K3s Release: https://docs.k3s.io/release-notes/v1.28.X
#
rancher_config:
enabled: false
version: v2.8.5
repo: https://releases.rancher.com/server-charts/latest
kubernetes:
version: v1.28.11+k3s1
config: /etc/rancher/k3s/k3s.yaml
# IP should be out of harvester_network_config.dhcp_server.range and does not
# conflict with other static IPs (e.g. Harvester).
ip: 192.168.0.141
hostname: rancher.192.168.0.141.sslip.io
password: password1234
cpu: 2
memory: 4096