Home > database >  Set pod resources from config map
Set pod resources from config map

Time:07-16

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"

CodePudding user response:

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

  • Related