[ci skip] f1-stream: add Discord token and channel env vars
This commit is contained in:
parent
28dd218590
commit
858377e257
1 changed files with 11 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
variable "tls_secret_name" { type = string }
|
variable "tls_secret_name" { type = string }
|
||||||
variable "nfs_server" { type = string }
|
variable "nfs_server" { type = string }
|
||||||
|
variable "discord_user_token" { type = string }
|
||||||
|
variable "discord_f1_guild_id" { type = string }
|
||||||
|
variable "discord_f1_channel_ids" { type = string }
|
||||||
|
|
||||||
|
|
||||||
resource "kubernetes_namespace" "f1-stream" {
|
resource "kubernetes_namespace" "f1-stream" {
|
||||||
|
|
@ -52,6 +55,14 @@ resource "kubernetes_deployment" "f1-stream" {
|
||||||
port {
|
port {
|
||||||
container_port = 8000
|
container_port = 8000
|
||||||
}
|
}
|
||||||
|
env {
|
||||||
|
name = "DISCORD_TOKEN"
|
||||||
|
value = var.discord_user_token
|
||||||
|
}
|
||||||
|
env {
|
||||||
|
name = "DISCORD_CHANNELS"
|
||||||
|
value = var.discord_f1_channel_ids
|
||||||
|
}
|
||||||
volume_mount {
|
volume_mount {
|
||||||
name = "data"
|
name = "data"
|
||||||
mount_path = "/data"
|
mount_path = "/data"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue