-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more remote vlan examples (#4433)
- The existing suite was broken into two parts: - internal - vlan breaktrough - Added OVS-forwarder example - Added multiple NS example Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
- Loading branch information
Showing
16 changed files
with
538 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# NSM Remote Vlan OVS Forwarder | ||
|
||
Contains setup for `forwarder-ovs` and device configuration file for remote vlan mechanism. | ||
|
||
## Requires | ||
|
||
Make sure that you have completed steps from [remotevlan](../../remotevlan) setup. | ||
|
||
## Includes | ||
|
||
- [Kernel2RVlanInternal](../../use-cases/Kernel2RVlanInternal) | ||
- [Kernel2RVlanBreakout](../../use-cases/Kernel2RVlanBreakout) | ||
- [Kernel2RVlanMultiNS](../../use-cases/Kernel2RVlanMultiNS) | ||
|
||
## Run | ||
|
||
Deploy the forwarder: | ||
|
||
```bash | ||
kubectl apply -k . | ||
``` | ||
|
||
Wait forwarder to start: | ||
|
||
```bash | ||
kubectl -n nsm-system wait --for=condition=ready --timeout=2m pod -l app=forwarder-ovs | ||
``` | ||
|
||
## Cleanup | ||
|
||
Delete the forwarder: | ||
|
||
```bash | ||
kubectl delete -k . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: nsm-system | ||
|
||
bases: | ||
- ../../../apps/forwarder-ovs | ||
|
||
configMapGenerator: | ||
- name: device-selector | ||
files: | ||
- selector | ||
|
||
patchesStrategicMerge: | ||
- patch-forwarder-ovs.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: forwarder-ovs | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: forwarder-ovs | ||
env: | ||
- name: NSM_L2_RESOURCE_SELECTOR_FILE | ||
value: /var/lib/networkservicemesh/device-selector.yaml | ||
volumeMounts: | ||
- name: devsel-vol | ||
mountPath: /var/lib/networkservicemesh/device-selector.yaml | ||
subPath: device-selector.yaml | ||
volumes: | ||
- name: devsel-vol | ||
configMap: | ||
name: device-selector | ||
items: | ||
- key: selector | ||
path: device-selector.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
interfaces: | ||
- name: eth1 | ||
bridge: br0 | ||
matches: | ||
- labelSelector: | ||
- via: gw1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
interfaces: | ||
- name: eth1 | ||
matches: | ||
- labelSelector: | ||
- via: gw1 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
first-iperf-s.yaml | ||
Dockerfile |
Oops, something went wrong.