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.