Major changes
This commit is contained in:
@@ -102,6 +102,7 @@ resource "kubernetes_deployment" "m3uproxy" {
|
||||
container_port = 8080
|
||||
name = "http"
|
||||
}
|
||||
|
||||
readiness_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
@@ -111,6 +112,7 @@ resource "kubernetes_deployment" "m3uproxy" {
|
||||
period_seconds = 10
|
||||
failure_threshold = 10
|
||||
}
|
||||
|
||||
env {
|
||||
name = "USERNAME"
|
||||
value_from {
|
||||
@@ -120,6 +122,7 @@ resource "kubernetes_deployment" "m3uproxy" {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
env {
|
||||
name = "PASSWORD"
|
||||
value_from {
|
||||
@@ -129,11 +132,13 @@ resource "kubernetes_deployment" "m3uproxy" {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
security_context {
|
||||
allow_privilege_escalation = false
|
||||
run_as_user = 1000
|
||||
run_as_group = 1000
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
name = "m3uproxy-config"
|
||||
mount_path = "/app/conf/m3uproxy.json"
|
||||
|
||||
Reference in New Issue
Block a user