diff --git a/kata-deploy/README.md b/kata-deploy/README.md index ebe2292d4..f66f6b0e1 100644 --- a/kata-deploy/README.md +++ b/kata-deploy/README.md @@ -22,7 +22,7 @@ and artifacts required to run Kata Containers, as well as reference daemonsets, which can be utilized to install Kata Containers for both Docker and on a running Kubernetes cluster. -Note, installation through daemonsets successfully installs `kata-containers.io/kata-runtime` on +Note, installation through daemonsets successfully installs `katacontainers.io/kata-runtime` on a node only if it uses either containerd or CRI-O CRI-shims. ## Docker quick start: @@ -79,7 +79,7 @@ kubectl apply -f kata-deploy.yaml ### Run a sample workload -Workloads which utilize Kata can node-select based on ```kata-containers.io/kata-runtime=true```, and are +Workloads which utilize Kata can node-select based on ```katacontainers.io/kata-runtime=true```, and are run through an applicable runtime if they are marked with the appropriate runtimeClass annotation. @@ -135,7 +135,9 @@ This image contains all the necessary artifacts for running Kata Containers, all from the [Kata Containers release page](https://github.com/kata-containers/runtime/releases). Host artifacts: -* kata-containers.io/kata-runtime +* kata-runtime +* kata-fc +* kata-qemu * kata-proxy * kata-shim * firecracker @@ -153,13 +155,13 @@ applying labels to the nodes. #### Kata installer: kata-deploy This daemonset installs the necessary kata binaries, configuration files, and virtual machine artifacts on -the node. Once installed, the daemonset adds a node label `kata-containers.io/kata-runtime=true` and reconfigures +the node. Once installed, the daemonset adds a node label `katacontainers.io/kata-runtime=true` and reconfigures either CRI-O or containerd to register two runtimeClasses: `kata-qemu` (for QEMU isolation) and `kata-fc` (for Firecracker isolation). As a final step the daemonset restarts either CRI-O or containerd. Upon deletion, the daemonset removes the -Kata binaries and VM artifacts and updates the node label to `kata-containers.io/kata-runtime=cleanup.` +Kata binaries and VM artifacts and updates the node label to `katacontainers.io/kata-runtime=cleanup.` ### Kata cleanup: -This daemonset runs of the node has the label `kata-containers.io/kata-runtime=cleanup.` These daemonsets removes -the `kata-containers.io/container-runtime` and `kata-containers.io/kata-runtime` labels as well as restarts either CRI-O or containerd systemctl -daemon and kubelet. You cannot execute these resets during the preStopHook of the Kata installer daemonset, +This daemonset runs of the node has the label `katacontainers.io/kata-runtime=cleanup.` These daemonsets removes +the `katacontainers.io/kata-runtime` label as well as restarts either CRI-O or containerd systemctl +daemon. You cannot execute these resets during the preStopHook of the Kata installer daemonset, which necessitated this final cleanup daemonset. diff --git a/kata-deploy/kata-cleanup.yaml b/kata-deploy/kata-cleanup.yaml index 7f7308424..f2c26d024 100644 --- a/kata-deploy/kata-cleanup.yaml +++ b/kata-deploy/kata-cleanup.yaml @@ -15,7 +15,7 @@ spec: spec: serviceAccountName: kata-label-node nodeSelector: - kata-containers.io/kata-runtime: cleanup + katacontainers.io/kata-runtime: cleanup containers: - name: kube-kata-cleanup image: katadocker/kata-deploy diff --git a/kata-deploy/scripts/kata-deploy.sh b/kata-deploy/scripts/kata-deploy.sh index a91f0fd21..c073e5a4a 100755 --- a/kata-deploy/scripts/kata-deploy.sh +++ b/kata-deploy/scripts/kata-deploy.sh @@ -120,7 +120,7 @@ function cleanup_containerd() { } function reset_runtime() { - kubectl label node $NODE_NAME kata-containers.io/container-runtime- kata-containers.io/kata-runtime- + kubectl label node $NODE_NAME katacontainers.io/kata-runtime- systemctl daemon-reload systemctl restart $1 systemctl restart kubelet @@ -158,7 +158,7 @@ function main() { cleanup) remove_artifacts cleanup_cri_runtime $runtime - kubectl label node $NODE_NAME --overwrite kata-containers.io/kata-runtime=cleanup + kubectl label node $NODE_NAME --overwrite katacontainers.io/kata-runtime=cleanup ;; reset) reset_runtime $runtime