pospt prep

This commit is contained in:
mr
2026-03-26 11:15:02 +01:00
parent 12eba65a01
commit f8a6e69ef3
3 changed files with 32 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ const appname = "oc-scheduler"
func main() {
o := oclib.GetConfLoader(appname)
conf.GetConfig().PrepLeadSeconds = o.GetIntDefault("PREP_LEAD_SECONDS", 120)
conf.GetConfig().KubeHost = o.GetStringDefault("KUBERNETES_SERVICE_HOST", "kubernetes.default.svc.cluster.local")
conf.GetConfig().KubePort = o.GetStringDefault("KUBERNETES_SERVICE_PORT", "6443")