Created
July 25, 2023 18:24
-
-
Save neoaggelos/c2b400a61b6b283719e255458ebdd30b to your computer and use it in GitHub Desktop.
MicroK8s kubevirt configuration
This file contains 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: 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