Essex Boy
Essex Boy

Reputation: 7950

Set pod resources from config map

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"

Upvotes: 2

Views: 145

Answers (1)

Yaron Idan
Yaron Idan

Reputation: 6765

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

Upvotes: 3

Related Questions