Skip to content

Commit 7f1eedf

Browse files
authored
Add warning about local state, use TF_VAR_namespace variable (#38)
1 parent fb8eb63 commit 7f1eedf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/tutorials/jenkins/opentofu-kubernetes/Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pipeline {
55
agent any
66
environment {
77
KUBE_CONFIG_PATH = credentials('kubeconfig')
8+
TF_VAR_namespace = "terraform-example"
89
}
910
stages {
1011
stage('Checkout') {

docs/tutorials/jenkins/opentofu-kubernetes/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ description: Tutorial on how to configure a Jenkins pipeline that deploys an fee
66

77
This tutorial contains a pipeline that deploys an feedback application to a Kubernetes cluster.
88

9+
!!! warning "This example uses local state"
10+
11+
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.
12+
913
## Prerequisites and preparing the Jenkins instance
1014

1115
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.

0 commit comments

Comments
 (0)