Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ CLUSTER_NAME=clustername
DNS_VIP="1.1.1.1"
# Set your default network type, `OpenShiftSDN` or `OVNKubernetes`, defaults to `OpenShiftSDN`
NETWORK_TYPE="OpenShiftSDN"
# Boolean to use OVNKubernetes local gateway mode. defaults to `false` which is shared mode
OVN_LOCAL_GATEWAY_MODE=false
# Set to the subnet in use on the external (baremetal) network
EXTERNAL_SUBNET_V4="192.168.111.0/24"
# Provide additional master/worker ignition configuration, will be
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gateway-mode-config
namespace: openshift-network-operator
data:
mode: local
immutable: true
8 changes: 8 additions & 0 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ function generate_assets() {
done
}

function local_gateway_mode(){
ASSESTS_DIR=$1
cp assets/templates/cluster-network-00-gateway-mode.yaml.optional assets/generated/cluster-network-00-gateway-mode.yaml
}

function custom_ntp(){
ASSESTS_DIR=$1
# TODO - consider adding NTP server config to install-config.yaml instead
Expand Down Expand Up @@ -55,6 +60,9 @@ function create_cluster() {
mkdir -p ${assets_dir}/openshift
generate_assets
custom_ntp ${assets_dir}/openshift
if [[ "${OVN_LOCAL_GATEWAY_MODE}" == "true" ]] && [[ "${NETWORK_TYPE}" == "OVNKubernetes" ]]; then
local_gateway_mode ${assets_dir}/openshift
fi
generate_metal3_config

find assets/generated -name '*.yaml' -exec cp -f {} ${assets_dir}/openshift \;
Expand Down