Deployment in version “v1″ cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects ” or n, but found 1, error found in #10 byte of …|,”value”:11111111111|…, bigger context …|”}],”env”:[{“name”:”MYSQL_ROOT_PASSWORD”,”value”:1111111111111111},{“name”:”MYSQL_DATABASE”,”value”:|…

  sre

0BCF4F49E6378E2D12C72157619C3984.jpg
报错信息:

Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found 1, error found in #10 byte of ...|,"value":11111111111|..., bigger context ...|"}],"env":[{"name":"MYSQL_ROOT_PASSWORD","value":1111111111111111},{"name":"MYSQL_DATABASE","value":|...

env中数字变量值需要引号

LEAVE A COMMENT

Captcha Code