pass in slack apprise config via env [ci skip]
This commit is contained in:
parent
04fb2397f3
commit
6bd2fc3cc9
3 changed files with 37 additions and 12 deletions
|
|
@ -1,4 +1,9 @@
|
|||
variable "tls_secret_name" {}
|
||||
variable "notification_settings" {
|
||||
type = map(string)
|
||||
default = {
|
||||
}
|
||||
}
|
||||
variable "db_password" {}
|
||||
|
||||
resource "kubernetes_namespace" "realestate-crawler" {
|
||||
|
|
@ -125,14 +130,14 @@ resource "kubernetes_deployment" "realestate-crawler-api" {
|
|||
value = "mysql://wrongmove:${var.db_password}@mysql.dbaas.svc.cluster.local:3306/wrongmove"
|
||||
|
||||
}
|
||||
env {
|
||||
name = "HTTP_PROXY"
|
||||
value = "http://tor-proxy.tor-proxy:8118"
|
||||
}
|
||||
env {
|
||||
name = "HTTPS_PROXY"
|
||||
value = "http://tor-proxy.tor-proxy:8118"
|
||||
}
|
||||
# env {
|
||||
# name = "HTTP_PROXY"
|
||||
# value = "http://tor-proxy.tor-proxy:8118"
|
||||
# }
|
||||
# env {
|
||||
# name = "HTTPS_PROXY"
|
||||
# value = "http://tor-proxy.tor-proxy:8118"
|
||||
# }
|
||||
env {
|
||||
name = "CELERY_BROKER_URL"
|
||||
value = "redis://redis.redis.svc.cluster.local:6379/0"
|
||||
|
|
@ -146,6 +151,10 @@ resource "kubernetes_deployment" "realestate-crawler-api" {
|
|||
name = "UVICORN_LOG_LEVEL"
|
||||
value = "debug"
|
||||
}
|
||||
env {
|
||||
name = "SLACK_WEBHOOK_URL"
|
||||
value = var.notification_settings["slack"]
|
||||
}
|
||||
port {
|
||||
name = "http"
|
||||
container_port = 5001
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue