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

Addded ned to master node by default

parent 2cb8fc35
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
apiVersion: l2sm.k8s.local/v1
kind: L2SMNetwork
metadata:
name: spain-network
spec:
type: inter-vnet
config: |
{
"provider": {
"name": "uc3m",
"domain": "idco.uc3m.es"
},
"accessList": ["public-key-1", "public-key-2"]
}
signature: sxySO0jHw4h1kcqO/LMLDgOoOeH8dOn8vZWv4KMBq0upxz3lcbl+o/36JefpEwSlBJ6ukuKiQ79L4rsmmZgglk6y/VL54DFyLfPw9RJn3mzl99YE4qCaHyEBANSw+d5hPaJ/I8q+AMtjrYpglMTRPf0iMZQMNtMd0CdeX2V8aZOPCQP75PsZkWukPdoAK/++y1vbFQ6nQKagvpUZfr7Ecb4/QY+hIAzepm6N6lNiFNTgj6lGTrFK0qCVfRhMD+vXbBP6xzZjB2N1nIheK9vx7kvj3HORjZ+odVMa+AOU5ShSKpzXTvknrtcRTcWWmXPNUZLoq5k3U+z1g1OTFcjMdQ====
......@@ -18,7 +18,7 @@ spec:
type:
type: string
config:
type: string # This is now simply a string, intended to hold JSON data.
type: string
nullable: true
signature:
type: string
......
......@@ -6,10 +6,24 @@ metadata:
app: l2sm
spec:
hostNetwork: true
initContainers:
- name: wait-for-l2sm-operator
image: curlimages/curl
args:
- /bin/sh
- -c
- >
set -x;
while [ $(curl -sw '%{http_code}' "http://l2sm-operator-service:8080/healthz" -o /dev/null) -ne 200 ]; do
sleep 15;
done;
sleep 5;
containers:
- name: mycontainer
image: alexdecb/l2sm-switch:2.2
command: ["sleep", "infinity"]
securityContext:
capabilities:
add: ["NET_ADMIN"]
\ No newline at end of file
add: ["NET_ADMIN"]
nodeSelector:
dedicated: master
\ No newline at end of file
apiVersion: v1
kind: Pod
metadata:
name: ping
labels:
app: ping-pong
annotations:
l2sm/networks: ping-network
spec:
containers:
- name: router
command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
image: alpine:latest
securityContext:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
nodeName: l2sm1
apiVersion: l2sm.k8s.local/v1
kind: L2SMNetwork
metadata:
name: vlink-sample
spec:
type: vlink
config: |
{
"overlay-parameters": {
"path": {
"name": "first-path",
"FromEndpoint": "node-a",
"ToEndpoint": "node-e",
"links": ["link-ac","link-cd","link-de"],
"capabilities": {
"bandwidthBits": "20M",
"latencyNanos": "8e5"
}
},
"reverse-path": {
"name": "second-path",
"fromEndpoint": "node-e",
"toEndpoint": "node-a",
"links": ["link-ed","link-db","link-ba"]
}
}
}
apiVersion: l2sm.k8s.local/v1
kind: L2SMNetwork
metadata:
name: ping-network
spec:
type: vnet
\ No newline at end of file
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