Last active
October 20, 2018 04:19
-
-
Save dougbtv/8c63c9922e94178649306979ece58694 to your computer and use it in GitHub Desktop.
Modified virtual device plugin daemonset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: virt-device-plugin | |
namespace: kube-system | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: kube-virt-device-plugin-amd64 | |
namespace: kube-system | |
labels: | |
tier: node | |
app: virtdp | |
spec: | |
template: | |
metadata: | |
labels: | |
tier: node | |
app: virtdp | |
spec: | |
hostNetwork: true | |
hostPID: true | |
nodeSelector: | |
beta.kubernetes.io/arch: amd64 | |
tolerations: | |
- key: node-role.kubernetes.io/master | |
operator: Exists | |
effect: NoSchedule | |
serviceAccountName: virt-device-plugin | |
containers: | |
- name: kube-virtdp | |
image: virt-device-plugin | |
imagePullPolicy: Never | |
command: [ '/usr/bin/virtdp', '-logtostderr', '-v', '10' ] | |
resources: | |
requests: | |
cpu: "100m" | |
memory: "50Mi" | |
limits: | |
cpu: "100m" | |
memory: "50Mi" | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- name: devicesock | |
mountPath: /var/lib/kubelet/device-plugins/ | |
readOnly: false | |
- name: net | |
mountPath: /sys/class/net | |
readOnly: true | |
volumes: | |
- name: devicesock | |
hostPath: | |
path: /var/lib/kubelet/device-plugins/ | |
- name: net | |
hostPath: | |
path: /sys/class/net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment