Skip to content

Commit a4e08b8

Browse files
Create sriov-cni-daemonset.yaml
1 parent 4574b75 commit a4e08b8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

manifests/sriov-cni-daemonset.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: DaemonSet
4+
metadata:
5+
name: kube-sriov-cni-ds-amd64
6+
namespace: kube-system
7+
labels:
8+
tier: node
9+
app: sriov-cni
10+
spec:
11+
selector:
12+
matchLabels:
13+
name: sriov-cni
14+
template:
15+
metadata:
16+
labels:
17+
name: sriov-cni
18+
tier: node
19+
app: sriov-cni
20+
spec:
21+
nodeSelector:
22+
kubernetes.io/arch: amd64
23+
tolerations:
24+
- key: node-role.kubernetes.io/master
25+
operator: Exists
26+
effect: NoSchedule
27+
containers:
28+
- name: kube-sriov-cni
29+
image: ghcr.io/k8snetworkplumbingwg/sriov-cni
30+
imagePullPolicy: IfNotPresent
31+
securityContext:
32+
allowPrivilegeEscalation: true
33+
privileged: false
34+
readOnlyRootFilesystem: true
35+
capabilities:
36+
drop:
37+
- ALL
38+
resources:
39+
requests:
40+
cpu: "100m"
41+
memory: "50Mi"
42+
limits:
43+
cpu: "100m"
44+
memory: "50Mi"
45+
volumeMounts:
46+
- name: cnibin
47+
mountPath: /host/opt/cni/bin
48+
volumes:
49+
- name: cnibin
50+
hostPath:
51+
path: /opt/cni/bin

0 commit comments

Comments
 (0)