mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/openshift_sdn/disabling-multicast.adoc
|
|
// * networking/ovn_kubernetes_network_provider/disabling-multicast.adoc
|
|
|
|
ifeval::["{context}" == "openshift-sdn-disabling-multicast"]
|
|
:namespace: netnamespace
|
|
:annotation: netnamespace.network.openshift.io/multicast-enabled-
|
|
endif::[]
|
|
ifeval::["{context}" == "ovn-kubernetes-disabling-multicast"]
|
|
:namespace: namespace
|
|
:annotation: k8s.ovn.org/multicast-enabled-
|
|
endif::[]
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-disabling-multicast_{context}"]
|
|
= Disabling multicast between pods
|
|
|
|
You can disable multicast between pods for your project.
|
|
|
|
.Prerequisites
|
|
|
|
* Install the OpenShift CLI (`oc`).
|
|
* You must log in to the cluster with a user that has the `cluster-admin` role.
|
|
|
|
.Procedure
|
|
|
|
* Disable multicast by running the following command:
|
|
+
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
$ oc annotate {namespace} <namespace> \ <1>
|
|
{annotation}
|
|
----
|
|
+
|
|
<1> The `namespace` for the project you want to disable multicast for.
|
|
ifeval::["{context}" == "ovn-kubernetes-disabling-multicast"]
|
|
+
|
|
[TIP]
|
|
====
|
|
You can alternatively apply the following YAML to delete the annotation:
|
|
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: <namespace>
|
|
annotations:
|
|
k8s.ovn.org/multicast-enabled: null
|
|
----
|
|
====
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "openshift-sdn-disabling-multicast"]
|
|
:!annotation:
|
|
:!namespace:
|
|
endif::[]
|
|
ifeval::["{context}" == "ovn-kubernetes-disabling-multicast"]
|
|
:!annotation:
|
|
:!namespace:
|
|
endif::[]
|