forked from intel/afxdp-plugins-for-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pod-spec.yaml
20 lines (19 loc) · 967 Bytes
/
pod-spec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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"]
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