Skip to content

Commit

Permalink
Run SR-IOV pods in burstable QoS
Browse files Browse the repository at this point in the history
https://bugzilla.redhat.com/show_bug.cgi?id=1958107

Signed-off-by: Zenghui Shi <zshi@redhat.com>
  • Loading branch information
zshi-redhat committed May 12, 2021
1 parent 5945fc9 commit e3a296a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindata/manifests/daemon/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
fieldPath: metadata.namespace
- name: CLUSTER_TYPE
value: "{{.ClusterType}}"
resources:
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: host
mountPath: /host
Expand Down
4 changes: 4 additions & 0 deletions bindata/manifests/operator-webhook/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- mountPath: /etc/tls
name: tls
Expand Down
8 changes: 8 additions & 0 deletions bindata/manifests/plugins/sriov-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,21 @@ spec:
image: {{.SRIOVCNIImage}}
securityContext:
privileged: true
resources:
requests:
cpu: 10m
memory: 10Mi
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
- name: sriov-infiniband-cni
image: {{.SRIOVInfiniBandCNIImage}}
securityContext:
privileged: true
resources:
requests:
cpu: 10m
memory: 10Mi
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
Expand Down
4 changes: 4 additions & 0 deletions bindata/manifests/plugins/sriov-device-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ spec:
fieldPath: spec.nodeName
securityContext:
privileged: true
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- name: devicesock
mountPath: /var/lib/kubelet/
Expand Down
4 changes: 4 additions & 0 deletions bindata/manifests/webhook/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- mountPath: /etc/tls
name: tls
Expand Down

0 comments on commit e3a296a

Please sign in to comment.