[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:
parent
0a1d53b6dd
commit
c5a4c6e97b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue