Set pod resources from config map

Viewed 21

I'm trying to set the resources of my pod from a config map

resources:
  requests:
    cpu:
    valueFrom:
     configMapKeyRef:
       name: config
       value: CPU_REQUEST

But get error "got map", expected "string"

1 Answers

Resources cannot be configured through configmaps, they need to be configured as part of the podspec

Related