forked from intel/afxdp-plugins-for-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod-spec.yaml
25 lines (24 loc) · 1.2 KB
/
pod-spec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# WARNING: This is an example pod spec only. Remove all comments before use.
apiVersion: v1
kind: Pod
metadata:
name: afxdp-pod # Pod name
annotations:
k8s.v1.cni.cncf.io/networks: afxdp-network # List of networks to attach to this pod (i.e. network name specified in network-attachment-definition.yaml)
spec:
containers:
- name: afxdp
image: docker-image:latest # Specify your docker image here, along with PullPolicy and command
imagePullPolicy: IfNotPresent
command: ["tail", "-f", "/dev/null"]
# capabilities: # Should be configured if using DPDK/CNDP with BPF Map pinning.
# add:
# - NET_RAW
# - IPC_LOCK
# - BPF # Only needed if kernel version <= 5.18
resources:
requests:
afxdp/myPool: '1' # The resource requested needs to match the device plugin pool name / resource type
limits: # The number requested needs to match the amount requested in annotations list above
afxdp/myPool: '1' # Requests and limits should match
restartPolicy: Never