kubectl apply -f init_vm.yaml kubectl get vm kubectl get vmi
to interact with the vm
1 2 3 4 5 6 7
virtctl console <vm_name> # ssh config is stored at: ~/.ssh/kube_known_hosts virtctl ssh <user>@<vm_name> # run this under gui, with `vncviewer` in path # install with `apt install tigervnc-viewer` virtctl vnc <vm_name>
load image exported with docker save <image>:<tag>
1 2 3 4 5 6 7 8 9
# ref: https://minikube.sigs.k8s.io/docs/commands/image/ # remember to set a tag to the image imported # or set the imagePullPolicy to Never # ref: https://iximiuz.com/en/posts/kubernetes-kind-load-docker-image/ minikube image load <image_filepath>/<docker_image_name> microk8s images import <image_filepath> microk8s ctr image import <image_filepath> k3s ctr image import <image_filepath>