英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论