Skip to content
Snippets Groups Projects
Commit 2cb8fc35 authored by Alex ubuntu vm's avatar Alex ubuntu vm
Browse files

examples: updated l2sm-network use guide

Following recent changes around the usage of l2sm-network, the ping pong example has been updated to showcase how the networks are defined
parent e63a2a9c
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
apiVersion: l2sm.k8s.local/v1
kind: L2SMNetwork
metadata:
name: ping-network
spec:
config: '{
"cniVersion": "0.3.0",
"type": "l2sm"
}'
type: vnet
\ No newline at end of file
......@@ -5,7 +5,7 @@ metadata:
labels:
app: ping-pong
annotations:
k8s.v1.cni.cncf.io/networks: ping-network
l2sm/networks: ping-network
spec:
containers:
- name: router
......@@ -15,4 +15,4 @@ spec:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
#nodeName: masterk8s
nodeName: l2sm1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment