Repository navigation
Conversation
Signed-off-by: Carlo Field <carlo@swiss.dev>
Contributor
Author
|
what we used for the quals apiVersion: v1
kind: Namespace
metadata:
name: infra-cdi
labels:
pod-security.kubernetes.io/enforce: privileged
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: generic-cdi-plugin-daemonset
namespace: infra-cdi
spec:
selector:
matchLabels:
name: generic-cdi-plugin
template:
metadata:
labels:
name: generic-cdi-plugin
app.kubernetes.io/component: generic-cdi-plugin
app.kubernetes.io/name: generic-cdi-plugin
spec:
initContainers:
- name: copy-cdi-json
image: busybox
command:
- sh
- -c
- cp /etc/cdi/nfits.json /host-cdi/nfits.json
volumeMounts:
- name: cdi-json
mountPath: /etc/cdi/nfits.json
subPath: nfits.json
- name: host-cdi
mountPath: /host-cdi
containers:
- image: ghcr.io/olfillasodikno/generic-cdi-plugin:main
name: generic-cdi-plugin
command:
- /generic-cdi-plugin
- /etc/cdi/nfits.json
imagePullPolicy: Always
securityContext:
privileged: true
tty: true
volumeMounts:
- name: kubelet
mountPath: /var/lib/kubelet
- name: cdi-json
mountPath: /etc/cdi/nfits.json
subPath: nfits.json
volumes:
- name: kubelet
hostPath:
path: /var/lib/kubelet
- name: cdi-json
configMap:
name: cdi-json
items:
- key: nfits.json
path: nfits.json
- name: host-cdi
hostPath:
path: /var/run/cdi
type: DirectoryOrCreate
---
apiVersion: v1
data:
nfits.json: |
{"cdiVersion":"0.5.0","containerEdits":{"deviceNodes":[],"hooks":[],"mounts":[]},"devices":[{"containerEdits":{"deviceNodes":[{"path":"/dev/kvm"}],"hooks":[]},"name":"kvm"}],"kind":"nfits.de/devices"}
kind: ConfigMap
metadata:
name: cdi-json
namespace: infra-cdirequires tagging the node appropriately and setting taints |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.