How to patch scaled objects? #6151
Unanswered
yaroslav-nakonechnikov
asked this question in
Q&A / Need Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to patch scaled object like:
kubectl patch scaledobject -n namespace scaled_project -p '{"spec":{"triggers":[{"metadata":{"value":80},"metricType":"Utilization","type":"cpu"},{"metadata":{"value":80},"metricType":"Utilization","type":"memory"}]}}'
and it fails:
Error from server (UnsupportedMediaType): the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json, application/apply-patch+yaml
why? how to workaround that?
Beta Was this translation helpful? Give feedback.
All reactions