[go: nahoru, domu]

Skip to content

Commit

Permalink
add daemonset spec for k8s v1.16 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahalimx86 committed Nov 5, 2019
1 parent 03b3ebe commit 2aa9b0e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
File renamed without changes.
47 changes: 47 additions & 0 deletions images/k8s-v1.16/sriov-cni-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-sriov-cni-ds-amd64
namespace: kube-system
labels:
tier: node
app: sriov-cni
spec:
selector:
matchLabels:
name: sriov-cni
template:
metadata:
labels:
name: sriov-cni
tier: node
app: sriov-cni
spec:
hostNetwork: true
nodeSelector:
beta.kubernetes.io/arch: amd64
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
containers:
- name: kube-sriov-cni
image: nfvpe/sriov-cni
imagePullPolicy: Never
securityContext:
privileged: true
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
volumes:
- name: cnibin
hostPath:
path: /opt/cni/bin

0 comments on commit 2aa9b0e

Please sign in to comment.