Skip to content

Instantly share code, notes, and snippets.

@neoaggelos
Created July 25, 2023 18:24
Show Gist options
  • Save neoaggelos/c2b400a61b6b283719e255458ebdd30b to your computer and use it in GitHub Desktop.
Save neoaggelos/c2b400a61b6b283719e255458ebdd30b to your computer and use it in GitHub Desktop.
MicroK8s kubevirt configuration
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
namespace: kubevirt
spec:
certificateRotateStrategy: {}
configuration:
developerConfiguration: {}
customizeComponents:
patches:
- resourceType: DaemonSet
resourceName: virt-handler
patch: '{"spec": {"template": {"spec": {
"volumes": [
{"name": "kubelet-pods", "hostPath": {"path": "/var/snap/microk8s/common/var/lib/kubelet/pods"}},
{"name": "kubelet-pods-shortened", "hostPath": {"path": "/var/snap/microk8s/common/var/lib/kubelet/pods"}},
{"name": "device-plugin", "hostPath": {"path": "/var/snap/microk8s/common/var/lib/kubelet/device-plugins"}}
],
"containers": [{
"name": "virt-handler",
"volumeMounts": [
{"name": "kubelet-pods", "mountPath": "/var/snap/microk8s/common/var/lib/kubelet/pods", "mountPropagation": "Bidirectional"},
{"name": "device-plugin", "mountPath": "/var/snap/microk8s/common/var/lib/kubelet/device-plugins"}
]
}]
}}}}'
type: strategic
flags:
handler:
kubelet-pods-dir: /var/snap/microk8s/common/var/lib/kubelet/pods
kubelet-root: /var/snap/microk8s/common/var/lib/kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment