Converting to IPv4/IPv6 dual-stack networking
As a cluster administrator, you can convert your single-stack cluster network to a dual-stack cluster network.
Prerequisites
You installed the OpenShift CLI (
oc
).You are logged in to the cluster with a user with
cluster-admin
privileges.Your cluster uses the OVN-Kubernetes network plugin.
The cluster nodes have IPv6 addresses.
Procedure
To specify IPv6 address blocks for the cluster and service networks, create a file containing the following YAML:
To patch the cluster network configuration, enter the following command:
$ oc patch network.config.openshift.io cluster \
--type='json' --patch-file <file>.yaml
where:
Specifies the name of the file you created in the previous step.
Example output
Verification
Complete the following step to verify that the cluster network recognizes the IPv6 address blocks that you specified in the previous procedure.
-
$ oc describe network
Example output
Converting to a single-stack cluster network
As a cluster administrator, you can convert your dual-stack cluster network to a single-stack cluster network.
Prerequisites
You are logged in to the cluster with a user with
cluster-admin
privileges.Your cluster uses the OVN-Kubernetes network plugin.
The cluster nodes have IPv6 addresses.
You have enabled dual-stack networking.
Procedure
-
$ oc edit networks.config.openshift.io