Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Update Readme #214

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,25 @@ For this reason we build userspacecni in a container.
userspacecni is built in a container and then transferred to the host.
By default Docker is used to build the image

Before building be sure to modify the makefile variable `IMAGE_REGISTRY`.
`IMAGE_REGISTRY` should be set to an image registry thats accessible across your cluster.

To build the docker image:
```
git clone https://github.com/intel/userspace-cni-network-plugin.git
cd userspace-cni-network-plugin
make build
```

To copy the userspacecni binary to the host directory /opt/cni/bin/
To copy the userspacecni binary to the host directory `/opt/cni/bin/`
```
make copy
```
To push the image to the docker reg defined in the makefile
```
make push
```
To deploy the userspacecni across the cluster
```
make deploy
```
Expand Down Expand Up @@ -423,7 +434,10 @@ kubectl exec -itn vpp vpp-app2 -- ./vpp-pod-setup-memif.sh

# ping pod 2 from pod 1 (through vpp)
kubectl exec -itn vpp vpp-app1 -- vppctl "ping 192.168.1.4"
# sample output
```

Sample output
```
116 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=83.4641 ms
116 bytes from 192.168.1.4: icmp_seq=2 ttl=64 time=72.0057 ms
116 bytes from 192.168.1.4: icmp_seq=3 ttl=64 time=67.9981 ms
Expand Down