1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/configuring-pods-secondary-network.adoc

31 lines
842 B
Plaintext

// Module included in the following assemblies:
//
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc
:_mod-docs-content-type: REFERENCE
[id="configuring-pods-secondary-network_{context}"]
= Configuring pods for secondary networks
[role="_abstract"]
You must specify the secondary network attachments through the `k8s.v1.cni.cncf.io/networks` annotation.
The following example provisions a pod with two secondary attachments, one for each of the attachment configurations presented in this guide:
[source,yaml]
----
apiVersion: v1
kind: Pod
metadata:
annotations:
k8s.v1.cni.cncf.io/networks: l2-network
name: tinypod
namespace: ns1
spec:
containers:
- args:
- pause
image: k8s.gcr.io/e2e-test-images/agnhost:2.36
imagePullPolicy: IfNotPresent
name: agnhost-container
----