From 41d23524f728217c29ab00f452710f98f3396ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 17 Jan 2023 09:59:11 +0100 Subject: [PATCH] quickstart: Adapt to the operator using kustomize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's adapt the instructions to using kustomize for deploying the sample ccruntime custom resource. Signed-off-by: Fabiano FidĂȘncio --- quickstart.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/quickstart.md b/quickstart.md index 5d0bf1f..656bddd 100644 --- a/quickstart.md +++ b/quickstart.md @@ -78,7 +78,19 @@ Creating a custom resource installs the required CC runtime pieces into the clus the `RuntimeClasses` ``` -kubectl apply -f https://raw.githubusercontent.com/confidential-containers/operator/main/config/samples/ccruntime.yaml +kubectl apply -k github.com/confidential-containers/operator/config/samples/ccruntime/?ref= +``` + +The current present overlays are: `default` and `s390x` + +For example, to deploy the `v0.3.0` release for `x86_64`, run: +``` +kubectl apply -k github.com/confidential-containers/operator/config/samples/ccruntime/default?ref=v0.3.0 +``` + +And to deploy `v0.3.0` release for `s390x`, run: +``` +kubectl apply -k github.com/confidential-containers/operator/config/samples/ccruntime/s390x?ref=v0.3.0 ``` Wait until each pod has the STATUS of Running. @@ -280,11 +292,11 @@ We have prepared a sample CoCo operator custom resource that is based on the sta Support for multiple custom resources in not available in the current release. Consequently, if a custom resource already exists, then you'll need to remove it first before deploying a new one. We can remove the standard custom resource with: ``` -kubectl delete -f https://raw.githubusercontent.com/confidential-containers/operator/main/config/samples/ccruntime.yaml +kubectl delete -k github.com/confidential-containers/operator/config/samples/ccruntime/?ref= ``` and in it's place install the modified version with the sample container's decryption key: ``` -kubectl apply -f https://raw.githubusercontent.com/confidential-containers/operator/main/config/samples/ccruntime-ssh-demo.yaml +kubectl apply -k github.com/confidential-containers/operator/config/samples/ccruntime/ssh-demo?ref= ``` Wait until each pod has the STATUS of Running. ```