From f6648dd2b089550d0244dc90078d1eefa9d75032 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Mon, 27 May 2024 15:31:27 +0200 Subject: [PATCH] Update the tutorial to the latest k8up version Signed-off-by: Nicolas Bigler --- docs/modules/ROOT/pages/tutorials/tutorial.adoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/modules/ROOT/pages/tutorials/tutorial.adoc b/docs/modules/ROOT/pages/tutorials/tutorial.adoc index 0fbc5d110..adaeaee70 100644 --- a/docs/modules/ROOT/pages/tutorials/tutorial.adoc +++ b/docs/modules/ROOT/pages/tutorials/tutorial.adoc @@ -1,5 +1,3 @@ -:k8up_version: v2.2.0 - = Backing up Kubernetes Clusters with K8up A common question we were asked by our clients moving to Kubernetes for the first time had almost always to do with backups: @@ -76,7 +74,12 @@ IMPORTANT: On some laptops, running Minikube on battery power severely undermine * `kubectl apply -k wordpress` . Install the CRDs K8up uses: -* `kubectl apply -f \https://github.com/k8up-io/k8up/releases/download/{k8up_version}/k8up-crd.yaml` +ifeval::["{page-component-version}" == "master"] +* `kubectl apply -f \https://github.com/k8up-io/k8up/releases/download/v{page-component-latest-version}.0/k8up-crd.yaml` +endif::[] +ifeval::["{page-component-version}" != "master"] +* `kubectl apply -f \https://github.com/k8up-io/k8up/releases/download/{releaseVersion}/k8up-crd.yaml` +endif::[] . Install K8up in Minikube: * `helm repo add k8up-io \https://k8up-io.github.io/k8up`