Skip to content

Commit 04e71df

Browse files
committed
Expose the networkType config in run_ocp
Make the networkType configurable depending on the OCP version to use. For now, default to OpenShiftSDN. OpenShiftSDN was deprecated in OCP 4.15 and will be removed in OCP 4.16
1 parent 5d40ba8 commit 04e71df

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cluster_config.sh.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export SSH_PUB_KEY="`cat $HOME/.ssh/id_rsa.pub`"
1010
export MASTER_COUNT=3
1111
export WORKER_COUNT=3
1212

13+
# Select the CNI plugin to use in your OCP deployment
14+
# From OCP 4.15 <, use OpenShiftSDN
15+
# From OCP 4.15 >=, use KubernetesOVN
16+
export OPENSHIFT_NETWORKTYPE="OpenShiftSDN"
17+
1318
##############################################
1419
# The following settings are platform specific
1520
##############################################

run_ocp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ networking:
101101
hostPrefix: 23
102102
machineNetwork:
103103
- cidr: 10.0.128.0/17
104-
networkType: OpenShiftSDN
104+
networkType: ${OPENSHIFT_NETWORKTYPE}
105105
serviceNetwork:
106106
- 172.30.0.0/16
107107
platform:

0 commit comments

Comments
 (0)