forked from metal3-io/metal3-dev-env
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config_example.sh
208 lines (169 loc) · 6.14 KB
/
config_example.sh
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#!/bin/bash
#
# Choose whether the "external" libvirt network will use IPv4, IPv6, or IPv4+IPv6.
# This network is the primary network interface for the virtual bare metal hosts.
#
# Note that this only sets up the underlying network, and fully provisioning IPv6
# kubernetes clusters is not yet automated. If IPv6 is enabled, DHCPv6 will
# be available to the virtual bare metal hosts.
#
# v4 -- IPv4 (default)
# v6 -- IPv6
# v4v6 -- dual-stack IPv4+IPv6
#
#export IP_STACK=v4
#
# This is the subnet used on the "external" libvirt network, created as the
# primary network interface for the virtual bare metal hosts.
#
# V4 default of 192.168.111.0/24 set in lib/network.sh
# V6 default of fd55::/64 is set in lib/network.sh
#
# If the network is on a specific VLAN, specify EXTERNAL_VLAN_ID (default: no
# special VLAN handling, variable is empty.)
#
#export EXTERNAL_SUBNET_V4="192.168.111.0/24"
#export EXTERNAL_SUBNET_V6="fd55::/64"
#export EXTERNAL_VLAN_ID=""
#
# This SSH key will be automatically injected into the provisioned host
#
# Default of ~/.ssh/id_rsa.pub is set in lib/common.sh
#
#export SSH_PUB_KEY=~/.ssh/id_rsa.pub
# Set the controlplane replica count
#export CONTROL_PLANE_MACHINE_COUNT=1
#
# This variable defines if controlplane should scale-in or scale-out during upgrade
# The field values can be 0 or 1. Default is 1. When set to 1 controlplane scale-out
# When set to 0 controlplane scale-in. In case of scale-in CONTROL_PLANE_MACHINE_COUNT must be >=3.
#
# In case of worker, this variable defines maximum number of machines that can be scheduled
# above the desired number of machines. Value can be an absolute number (ex: 5) or a percentage
# of desired machines (ex: 10%). This can not be 0 if MAX_UNAVAILABLE_VALUE is 0. Absolute number
# is calculated from percentage by rounding up. Defaults to 1.
#
#export MAX_SURGE_VALUE=1
#
# Select the Container Runtime, can be "podman" or "docker"
# Defaults to "docker" on ubuntu and "podman" otherwise
#
#export CONTAINER_RUNTIME="podman"
#
# Set the Baremetal Operator repository to clone
#
#export BMOREPO="${BMOREPO:-https://github.com/metal3-io/baremetal-operator.git}"
#
# Set the Baremetal Operator branch to checkout
#
#export BMOBRANCH="${BMOBRANCH:-main}"
#
# Set the Cluster Api Metal3 provider repository to clone
#
#export CAPM3REPO="${CAPM3REPO:-https://github.com/metal3-io/cluster-api-provider-metal3.git}"
#
# Set the Cluster Api Metal3 provider branch to checkout
#
#export CAPM3BRANCH="${CAPM3BRANCH:-main}"
#
# Force deletion of the BMO and CAPM3 repositories before cloning them again
#
#export FORCE_REPO_UPDATE="${FORCE_REPO_UPDATE:-false}"
#
# Run a local baremetal operator instead of deploying in Kubernetes
#
#export BMO_RUN_LOCAL=true
#
# Run a local CAPM3 operator instead of deploying in Kubernetes
#
#export CAPM3_RUN_LOCAL=true
#
# Do not retry on failure during verifications or tests of the environment
# This should be true. It could only be set to false for verifications of a
# dev env deployment that fully completed. Otherwise failures will appear as
# resources are not ready.
#
#export SKIP_RETRIES=false
#
# Interval between retries after verification or test failure
#
#export TEST_TIME_INTERVAL=10
#
# Number of maximum verification or test retries
#
#export TEST_MAX_TIME=120
#
# Set the driver. The default value is 'mixed' (alternate nodes between ipmi
# and redfish). Can also be set explicitly to ipmi/redfish/redfish-virtualmedia.
#
#export BMC_DRIVER="mixed"
#
# Set libvirt firmware and BMC bootMode
# Choose "legacy" (bios), "UEFI", or "UEFISecureBoot"
# Defaults to legacy for ipv4, UEFI for ipv6
# export BOOT_MODE="UEFI"
# Select the Cluster API provider Metal3 version
# Accepted values : v1beta1
# default: v1beta1
#
#export CAPM3_VERSION=v1beta1
# Select the Cluster API version
# Accepted values : v1beta1
# default: v1beta1
#
#export CAPI_VERSION=v1beta1
#export KUBERNETES_VERSION="v1.31.0"
#export UPGRADED_K8S_VERSION="v1.31.0"
# Version of kubelet, kubeadm and kubectl binaries
#export KUBERNETES_BINARIES_VERSION="${KUBERNETES_BINARIES_VERSION:-${KUBERNETES_VERSION}}"
#export KUBERNETES_BINARIES_CONFIG_VERSION="v0.15.1"
# Configure provisioning network for single-stack ipv6
#export BARE_METAL_PROVISIONER_SUBNET_IPV6_ONLY=false
# Image OS (can be "Cirros", "Ubuntu", "Centos", overriden by IMAGE_* if set)
# Default: Centos
#export IMAGE_OS="centos"
# Image for target hosts deployment
#
#export IMAGE_NAME="CENTOS_9_NODE_IMAGE_K8S_v1.31.0.qcow2"
# Location of the image to download
#
#export IMAGE_LOCATION="https://artifactory.nordix.org/artifactory/metal3/images/k8s_v1.31.0"
# Image username for ssh
#
#export IMAGE_USERNAME="metal3"
# Registry to pull metal3 container images from
#
#export CONTAINER_REGISTRY=${CONTAINER_REGISTRY:-"quay.io"}
# Container image for ironic pod
#
#export IRONIC_IMAGE="${CONTAINER_REGISTRY}/metal3-io/ironic"
# Container image for vbmc container
#
#export VBMC_IMAGE="${CONTAINER_REGISTRY}/metal3-io/vbmc"
# Container image for sushy-tools container
#
#export SUSHY_TOOLS_IMAGE="${CONTAINER_REGISTRY}/metal3-io/sushy-tools"
# APIEndpoint IP for target cluster
#export CLUSTER_APIENDPOINT_IP="192.168.111.249"
# Cluster provisioning Interface
#export BARE_METAL_PROVISIONER_INTERFACE="ironicendpoint"
# POD CIDR
#export POD_CIDR=${POD_CIDR:-"192.168.0.0/18"}
# Node hostname format. This is a format string that must contain exactly one
# %d format field that will be replaced with an integer representing the number
# of the node.
#export NODE_HOSTNAME_FORMAT="node-%d"
# Ephemeral cluster used as management cluster for cluster API
# (can be "kind", "minikube" or "tilt"). Only "minikube" is supported with
# CentOS
# Selecting "tilt" does not deploy a management cluster, it is left up to the
# user
# Default is "kind" when CONTAINER_RUNTIME="docker", otherwise it is "minikube"
#export EPHEMERAL_CLUSTER=minikube
# Secure Ironic deployment with TLS ("true" or "false")
#export IRONIC_TLS_SETUP="true"
# Set nodeDrainTimeout for controlplane and worker template, otherwise default value will be '0s'.
#
#export NODE_DRAIN_TIMEOUT=${NODE_DRAIN_TIMEOUT:-"0s"}
# Uncomment the line below to build ironic-image from source
# export IRONIC_FROM_SOURCE="true"