[ci skip] fix plotting-book: add SESSION_SECRET env var

Session secret stored in encrypted terraform.tfvars, referenced
via variable to avoid committing secrets in plain text.
This commit is contained in:
Viktor Barzin 2026-02-23 22:44:04 +00:00
parent 0a1d53b6dd
commit c5a4c6e97b

View file

@ -1,4 +1,5 @@
variable "tls_secret_name" { type = string }
variable "plotting_book_session_secret" { type = string }
resource "kubernetes_namespace" "plotting-book" {
@ -50,6 +51,10 @@ resource "kubernetes_deployment" "plotting-book" {
# image = "viktorbarzin/book-plotter:7"
name = "plotting-book"
image_pull_policy = "Always"
env {
name = "SESSION_SECRET"
value = var.plotting_book_session_secret
}
port {
container_port = 3001
}