From 095b127049e9b29b2bcb64b054d1472b5a5c2eb1 Mon Sep 17 00:00:00 2001 From: Toni Kangas Date: Tue, 24 Jun 2025 18:27:59 +0300 Subject: [PATCH] Add warning about local state, use `TF_VAR_namespace` variable --- docs/tutorials/jenkins/opentofu-kubernetes/Jenkinsfile | 1 + docs/tutorials/jenkins/opentofu-kubernetes/README.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/tutorials/jenkins/opentofu-kubernetes/Jenkinsfile b/docs/tutorials/jenkins/opentofu-kubernetes/Jenkinsfile index 37cd85e..a5eec67 100644 --- a/docs/tutorials/jenkins/opentofu-kubernetes/Jenkinsfile +++ b/docs/tutorials/jenkins/opentofu-kubernetes/Jenkinsfile @@ -5,6 +5,7 @@ pipeline { agent any environment { KUBE_CONFIG_PATH = credentials('kubeconfig') + TF_VAR_namespace = "terraform-example" } stages { stage('Checkout') { diff --git a/docs/tutorials/jenkins/opentofu-kubernetes/README.md b/docs/tutorials/jenkins/opentofu-kubernetes/README.md index 716a23e..ab355e6 100644 --- a/docs/tutorials/jenkins/opentofu-kubernetes/README.md +++ b/docs/tutorials/jenkins/opentofu-kubernetes/README.md @@ -6,6 +6,10 @@ description: Tutorial on how to configure a Jenkins pipeline that deploys an fee This tutorial contains a pipeline that deploys an feedback application to a Kubernetes cluster. +!!! warning "This example uses local state" + + This example does not configure state backend and thus stores the state locally. When managing real infrastructure, configure a persistent state storage, for example, with S3 bucket or Postgres database as the backend. + ## Prerequisites and preparing the Jenkins instance See [Deploy application to Kubernetes with Ansible](../ansible-kubernetes/) tutorial for prerequisites and instruction for configuring access from the Jenkins instance to the Kubernetes cluster.