diff --git a/tools/packaging/kata-deploy/README.md b/tools/packaging/kata-deploy/README.md index e749541d6..63ca63616 100644 --- a/tools/packaging/kata-deploy/README.md +++ b/tools/packaging/kata-deploy/README.md @@ -11,13 +11,25 @@ a node only if it uses either containerd or CRI-O CRI-shims. ### Install Kata on a running Kubernetes cluster +#### Installing the latest image + +The latest image refers to pre-release and release candidate content. For stable releases, please, use the "stable" instructions. ```sh $ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-rbac/base/kata-rbac.yaml $ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml ``` -### For your [k3s](https://k3s.io/) cluster, do: +#### Installing the stable image + +The stable image refers to the last stable releases content. + +```sh +$ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-rbac/base/kata-rbac.yaml +$ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-deploy/base/kata-deploy-stable.yaml +``` + +#### For your [k3s](https://k3s.io/) cluster, do: ```sh $ GO111MODULE=auto go get github.com/kata-containers/kata-containers @@ -91,6 +103,8 @@ $ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-conta ### Remove Kata from the Kubernetes cluster +#### Removing the latest image + ```sh $ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml $ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml @@ -99,6 +113,16 @@ $ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-conta $ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/runtimeclasses/kata-runtimeClasses.yaml ``` +#### Removing the stable image + +```sh +$ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-deploy/base/kata-deploy-stable.yaml +$ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-cleanup/base/kata-cleanup-stabe.yaml +$ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-cleanup/base/kata-cleanup-stable.yaml +$ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/kata-rbac/base/kata-rbac.yaml +$ kubectl delete -f https://raw.githubusercontent.com/kata-containers/kata-containers/main/tools/packaging/kata-deploy/runtimeclasses/kata-runtimeClasses.yaml +``` + ## `kata-deploy` details ### Dockerfile