forked from intel/afxdp-plugins-for-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpfwrapper: use libxdp for redirect program
Signed-off-by: Maryam Tahhan <[email protected]>
- Loading branch information
1 parent
a147850
commit a16bb4f
Showing
2 changed files
with
55 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# A working example of BPF MAP PINNING | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: cndp-0-0 | ||
annotations: | ||
k8s.v1.cni.cncf.io/networks: afxdp-network | ||
spec: | ||
containers: | ||
- name: cndp-0 | ||
command: ["/bin/bash"] | ||
args: ["-c", "./jsonc_gen.sh -kp ; cndpfwd -c config.jsonc lb;"] | ||
image: quay.io/mtahhan/cndp-map-pinning:latest | ||
imagePullPolicy: IfNotPresent | ||
securityContext: | ||
privileged: true | ||
#capabilities: | ||
#add: | ||
# - NET_RAW | ||
# - IPC_LOCK | ||
# - BPF | ||
resources: | ||
requests: | ||
afxdp/myPool: '1' | ||
limits: | ||
afxdp/myPool: '1' |
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