Skip to content
Snippets Groups Projects
Unverified Commit f00358a5 authored by lewisfelix's avatar lewisfelix Committed by GitHub
Browse files

Delete K8s/demo directory

parent ad7bae0b
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
#!/bin/bash
ip link add vxlan1 type vxlan id 1969 dev enp1s0 dstport 4789
ip link set vxlan1 up
#bridge fdb append to 00:00:00:00:00:00 dst 163.117.140.237 dev vxlan1
ip link add dev vpod1 mtu 1450 type veth peer name vhost1 mtu 1450
ip link add dev vpod2 mtu 1450 type veth peer name vhost2 mtu 1450
ip link add dev vpod3 mtu 1450 type veth peer name vhost3 mtu 1450
ip link add dev vpod4 mtu 1450 type veth peer name vhost4 mtu 1450
apiVersion: v1
kind: Pod
metadata:
name: l2-pyra
annotations:
k8s.v1.cni.cncf.io/networks: vhost1@vhost1, vhost2@vhost2, vhost3@vhost3, vhost4@vhost4, vxlan1@vxlan1
spec:
containers:
- name: l2-pyra
image: lewisfelix24/ovs-pod-ml2s:rpi
command: ["/bin/sh", "-c"]
args: ["ovsdb-server --remote=punix:/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile=/var/run/openvswitch/ovsdb-server.pid
--detach && ovs-vsctl --db=unix:/var/run/openvswitch/db.sock --no-wait init && ovs-vswitchd --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach &&
ip link set vhost1 up && ip link set vhost2 up && ip link set vhost3 up && ip link set vhost4 up && ip link set vxlan1 up &&
ovs-vsctl add-br brtun && ip link set brtun up &&
/bin/sleep 3650d"]
imagePullPolicy: IfNotPresent
securityContext:
capabilities:
add: ["NET_ADMIN"]
nodeName: pyra
apiVersion: v1
kind: Pod
metadata:
name: l2-rex
annotations:
k8s.v1.cni.cncf.io/networks: vhost1@vhost1, vhost2@vhost2, vhost3@vhost3, vhost4@vhost4, vxlan1@vxlan1
spec:
containers:
- name: l2-rex
image: lewisfelix24/ovs-pod-ml2s:amd64
command: ["/bin/sh", "-c"]
args: ["ovsdb-server --remote=punix:/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile=/var/run/openvswitch/ovsdb-server.pid
--detach && ovs-vsctl --db=unix:/var/run/openvswitch/db.sock --no-wait init && ovs-vswitchd --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach &&
ip link set vhost1 up && ip link set vhost2 up && ip link set vhost3 up && ip link set vhost4 up && ip link set vxlan1 up &&
ovs-vsctl add-br brtun && ip link set brtun up &&
ovs-vsctl add-port brtun vxlan1 &&
/bin/sleep 3650d"]
imagePullPolicy: IfNotPresent
securityContext:
capabilities:
add: ["NET_ADMIN"]
nodeName: rex
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