mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
38 lines
983 B
Plaintext
38 lines
983 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/multiple_networks/configuring-multi-network-policy.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-multi-network-policy-enable_{context}"]
|
|
= Enabling multi-network policy for the cluster
|
|
|
|
[role="_abstract"]
|
|
As a cluster administrator, you can enable multi-network policy support on your cluster.
|
|
|
|
.Prerequisites
|
|
|
|
* Install the {oc-first}.
|
|
* Log in to the cluster with a user with `cluster-admin` privileges.
|
|
|
|
.Procedure
|
|
|
|
. Create the `multinetwork-enable-patch.yaml` file with the following YAML:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: operator.openshift.io/v1
|
|
kind: Network
|
|
metadata:
|
|
name: cluster
|
|
spec:
|
|
useMultiNetworkPolicy: true
|
|
# ...
|
|
----
|
|
|
|
. Configure the cluster to enable multi-network policy. Successful output lists the name of the policy object and the `patched` status.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc patch network.operator.openshift.io cluster --type=merge --patch-file=multinetwork-enable-patch.yaml
|
|
----
|