无法解码”STDIN”:对象’Kind’缺失

huangapple go评论46阅读模式
英文:

unable to decode "STDIN": Object 'Kind' is missing in

问题

在解码密钥时,我遇到了以下错误:

"waiting for deletion: running [kubectl --context docker-desktop get -f - --ignore-not-found -ojson]

  • stdout: ""
  • stderr: "unable to decode "STDIN": Object 'Kind' is missing in '{"env":[{"name":"TMPDIR","value":"/tmp"},{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}}"
英文:

I am using docker desktop v 4.11.0
and Kubernetes v1.24.2

while decoding secrets I am getting this error

waiting for deletion: running [kubectl --context docker-desktop get -f - --ignore-not-found -ojson]

  • stdout: ""
  • stderr: "unable to decode "STDIN": Object 'Kind' is missing in '{"env":[{"name":"TMPDIR","value":"/tmp"},{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}}

答案1

得分: 0

错误指示存在问题与您用于在Kubernetes中创建秘密的Kubernetes YAML清单文件有关。

请检查语法错误和不正确的值;请检查'kind'字段,如果缺失,需要将其添加到YAML清单中;然后尝试解码秘密。

请查看官方页面以获取进一步的参考信息:https://kubernetes.io/docs/concepts/configuration/secret/。

英文:

The error indicates it is having an issue with the Kubernetes YAML manifest file that you are using to create Secret in Kubernetes.

Please check syntax errors and incorrect values; Please check ‘kind’ field and if it is missing you need to add it and to the YAML manifest as well; and then try to decode the secret.

Please check the official page for further reference.

huangapple
  • 本文由 发表于 2023年2月16日 17:01:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/75469886.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定