Skip to content

Commit

Permalink
Add Calico patches for VPP Forwarder
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
  • Loading branch information
Vladimir Popov committed Nov 1, 2021
1 parent 2a9409a commit 167a741
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 3 deletions.
24 changes: 24 additions & 0 deletions apps/forwarder-vpp/calico-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: forwarder-vpp
spec:
template:
spec:
hostPID: true
containers:
- name: forwarder-vpp
env:
- name: NSM_VPP_API_SOCKET
value: /var/run/vpp/vpp-api.sock
- name: NSM_VPP_INIT
value: NONE
volumeMounts:
- name: vpp
mountPath: /var/run/vpp
volumes:
- name: vpp
hostPath:
path: /var/run/vpp
type: Directory
6 changes: 5 additions & 1 deletion examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ kubectl create ns nsm-system
2. Apply NSM resources for basic tests:

```bash
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d3257910fdcb2038340b892023d746205369a599
if [[ -n "${CALICO}" ]]; then # calico
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic/calico?ref=d3257910fdcb2038340b892023d746205369a599
else
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d3257910fdcb2038340b892023d746205369a599
fi
```

## Cleanup
Expand Down
11 changes: 11 additions & 0 deletions examples/basic/calico/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: nsm-system

resources:
- ../

patchesStrategicMerge:
- ../../../apps/forwarder-vpp/calico-patch.yaml
6 changes: 5 additions & 1 deletion examples/multiforwarder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ kubectl create ns nsm-system

Apply NSM resources for basic tests:
```bash
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/multiforwarder?ref=d3257910fdcb2038340b892023d746205369a599
if [[ -n ${CALICO} ]]; then # calico
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/multiforwarder/calico?ref=d3257910fdcb2038340b892023d746205369a599
else
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/multiforwarder?ref=d3257910fdcb2038340b892023d746205369a599
fi
```

## Cleanup
Expand Down
11 changes: 11 additions & 0 deletions examples/multiforwarder/calico/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: nsm-system

resources:
- ../

patchesStrategicMerge:
- ../../../apps/forwarder-vpp/calico-patch.yaml
6 changes: 5 additions & 1 deletion examples/sriov/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ kubectl create ns nsm-system

Apply NSM resources for basic tests:
```bash
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=d3257910fdcb2038340b892023d746205369a599
if [[ -n ${CALICO} ]]; then # calico
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov/calico?ref=d3257910fdcb2038340b892023d746205369a599
else
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=d3257910fdcb2038340b892023d746205369a599
fi
```

## Cleanup
Expand Down
11 changes: 11 additions & 0 deletions examples/sriov/calico/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: nsm-system

resources:
- ../

patchesStrategicMerge:
- ../../../apps/forwarder-vpp/calico-patch.yaml

0 comments on commit 167a741

Please sign in to comment.