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" apiVersion: l2sm.k8s.local/v1
kind: NetworkAttachmentDefinition kind: L2SMNetwork
metadata: metadata:
name: ping-network name: ping-network
spec: spec:
config: '{ type: vnet
"cniVersion": "0.3.0", \ No newline at end of file
"type": "l2sm"
}'
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
labels: labels:
app: ping-pong app: ping-pong
annotations: annotations:
k8s.v1.cni.cncf.io/networks: ping-network l2sm/networks: ping-network
spec: spec:
containers: containers:
- name: router - name: router
...@@ -15,4 +15,4 @@ spec: ...@@ -15,4 +15,4 @@ spec:
capabilities: capabilities:
add: ["NET_ADMIN"] add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node # 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