Environment Variables Used in Deployment
This guide is designed to be completed primarily through copy-and-paste instructions. Some values cannot be anticipated, so they are supplied as environment variables that you set yourself.
The variables below cover the single-node procedure and are determined by your network
configuration. You can derive most of them by logging into the
Server node and running ip addr.
IP1 and IP2 are addresses you choose rather than read off the interface. The 3-node HA path
introduces FIRST_SERVER_IP, NEW_SERVER_IP and TOKEN where it uses them.
Note the following example for guidance.
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 56:00:04:ee:80:f5 brd ff:ff:ff:ff:ff:ff
inet 64.176.213.81/23 brd 64.176.213.255 scope global dynamic noprefixroute enp1s0
valid_lft 85130sec preferred_lft 85130sec
inet6 fe80::5400:4ff:feee:80f5/64 scope link
valid_lft forever preferred_lft forever
3: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc mq state UP group default qlen 1000
link/ether 5a:00:04:ee:80:f5 brd ff:ff:ff:ff:ff:ff
inet 10.1.96.7/20 brd 10.1.111.255 scope global noprefixroute enp8s0
valid_lft forever preferred_lft forever
inet6 fe80::5800:4ff:feee:80f5/64 scope link
valid_lft forever preferred_lft forever- INTERNAL_IP_ADDR: The IP address of the Server node on the internal network. In this example
the value is
10.1.96.7. - IP1: An IP address that metallb can assign to a LoadBalancer service on the internal
network. Choose a free address on the internal subnet that DHCP does not hand out. For example,
10.1.96.99. - IP2: A second such address, chosen the same way. For example,
10.1.96.100. - INTERNAL_INTERFACE: The literal string name of the internal interface. In this example the
value is
enp8s0. - PRIVATE_SUBNET: Calculate this with
ipcalc(install it withdnf install -y ipcalc) from the internalinetvalue. In this example,ipcalc 10.1.96.7/20 | grep Networkreports the network as10.1.96.0/20.