インフラ系SEの技術メモ

雑なエンジニアが低信頼性のメモを書いています。参考程度にとどめてください。

(Openshift)error found in #10 byte of とエラーが出た時に疑うこと

Deploymentを作れない

YAMLをAPPLYするもエラー。

handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Resources: v1.ResourceRequirements.Limits: unmarshalerDecoder: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$', error found in #10 byte of ...|-ssl:v1.0","memory":|..., bigger context ...|0.5","image":"xx","memory":"128Mi"}}}]}}}}

上を見ると何やら色々と書いていますが、Memoryとイメージ名が並んでいる...?

結論 YAMLのインデントミス

resouceな中にイメージが記述されていました。
よって構文エラーになっていたんですね。なるほど。