13.0常见问题
报错:Error from server (BadRequest): error when creating "/root/example/templates/deployment.yaml": Deployment in version "v1beta1" cannot be handled as a Deployment: v1beta1.Deployment.Spec: v1beta1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found 4, error found in #10 byte of ...|,"value":443},{"name|..., bigger context ...|tainers":[{"env":[{"name":"WOCLOUD_PORT","value":443},{"name":"WOCLOUD_IP","value":"localhost"},{"na|...
其原因是由于,环境变量WOCLOUD_PORT的值应该是string类型,而443被当成int处理,没有当作string处理。所以报错:expects " or n, but found 4
期待引号,但是发现的却是4
使用如下形式解决
Last updated
Was this helpful?