Keda Jobs : expose pod information to containers #1496
Unanswered
subhamkhemka
asked this question in
Q&A / Need Help
Replies: 1 comment 4 replies
-
It seems like we don't support the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am running a keda job and I am unable to expose pod information to containers as environment variables.
Yaml
Keda Operator Logs
{"level":"debug","ts":1610366225.5888655,"logger":"scalehandler","msg":"Handle Scale Job called","ScaledObject.Namespace":"default","ScaledObject.Name":"keda-scaler","ScaledObject.ScaleType":"job"}
{"level":"dpanic","ts":1610366225.5889187,"logger":"scalehandler","msg":"odd number of arguments passed as key-value pairs for logging","ScaledObject.Namespace":"default","ScaledObject.Name":"keda-scaler","ScaledObject.ScaleType":"job","ignored key":"NODE_NAME","stacktrace":"github.com/go-logr/zapr.handleFields\n\t/Users/zroubali/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:106\ngithub.com/go-logr/zapr.(*infoLogger).Info\n\t/Users/zroubali/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:70\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).resolveEnv\n\tkeda/pkg/handler/scale_handler.go:134\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).resolveJobEnv\n\tkeda/pkg/handler/scale_jobs.go:105\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).getJobScalers\n\tkeda/pkg/handler/scale_handler.go:246\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).handleScaleJob\n\tkeda/pkg/handler/scale_loop.go:53\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).handleScale\n\tkeda/pkg/handler/scale_loop.go:42\ngithub.com/kedacore/keda/pkg/handler.(*ScaleHandler).HandleScaleLoop\n\tkeda/pkg/handler/scale_loop.go:28"}
{"level":"debug","ts":1610366225.5889153,"logger":"scalehandler","msg":"cannot resolve env %s to a value. fieldRef and resourceFieldRef env are skipped","ScaledObject.Namespace":"default","ScaledObject.Name":"keda-scaler","ScaledObject.ScaleType":"job"}
Kindly help with this issue, thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions