Skip to content
Snippets Groups Projects
Commit fe8f1a1c authored by Alejandro Tjaarda's avatar Alejandro Tjaarda
Browse files

dev: updated dev parameters

These parameters, in the future, may go in the .gitignore
parent acd75f34
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
......@@ -3,13 +3,15 @@ kind: L2SMNetwork
metadata:
name: ping-network
spec:
type: ext-vnet
type: vnet
provider:
name: "Universidad Carlos III de Madrid"
domain: idco.uc3m.es
config: |
config: |
{
"accessList": ["public-key-1", "public-key-2"],
"signature": "sxySO0jHw4h1kcqO/LMLDgOoOeH8dOn8vZWv4KMBq0upxz3lcbl+o/36JefpEwSlBJ6ukuKiQ79L4rsmmZgglk6y/VL54DFyLfPw9RJn3mzl99YE4qCaHyEBANSw+d5hPaJ/I8q+AMtjrYpglMTRPf0iMZQMNtMd0CdeX2V8aZOPCQP75PsZkWukPdoAK/++y1vbFQ6nQKagvpUZfr7Ecb4/QY+hIAzepm6N6lNiFNTgj6lGTrFK0qCVfRhMD+vXbBP6xzZjB2N1nIheK9vx7kvj3HORjZ+odVMa+AOU5ShSKpzXTvknrtcRTcWWmXPNUZLoq5k3U+z1g1OTFcjMdQ===="
}
overlay: main-overlay
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: my-bridge-net
namespace: default # Or any namespace you want this network to be available in
spec:
config: '{
"cniVersion": "0.3.1",
"name": "my-bridge-net",
"type": "bridge",
"bridge": "brtest",
"isGateway": true,
"ipMasq": false,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"subnet": "10.244.1.0/24",
"rangeStart": "10.244.1.10",
"rangeEnd": "10.244.1.100",
"routes": [
{ "dst": "0.0.0.0/0" }
],
"gateway": "10.244.1.1"
}
}'
apiVersion: v1
kind: Pod
metadata:
name: ping
annotations:
k8s.v1.cni.cncf.io/networks: '[{"name": "veth10","ips": ["10.0.0.6/24"]}]'
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: ant-machine
apiVersion: v1
kind: Pod
metadata:
name: pong
annotations:
k8s.v1.cni.cncf.io/networks: '[{"name": "veth10","ips": ["10.0.0.5/24"]}]'
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: ant-machine
......@@ -6,7 +6,7 @@ metadata:
app: ping-pong
l2sm: "true"
annotations:
l2sm/networks: '[{"name": "ping-network","ips": ["10.0.0.1/24"]},{"name": "ping-network2"}]'
l2sm/networks: '[{"name": "ping-network","ips": ["10.0.0.1/24"]}]'
spec:
containers:
- name: router
......@@ -16,4 +16,4 @@ spec:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
nodeName: l2sm1
nodeName: ant-machine
......@@ -16,4 +16,4 @@ spec:
capabilities:
add: ["NET_ADMIN"]
# Use this parameter if you want to place the pod in a specific node
#nodeName: workerk8s
nodeName: mole
CONTROLLER_IP=10.152.183.223
CONTROLLER_IP=10.152.183.155
CONTROLLER_PORT=8181
SWITCHES_NAMESPACE=he-codeco-netma
\ No newline at end of file
SWITCHES_NAMESPACE=l2sm-system
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