gpt4 book ai didi

kubernetes - 谷歌容器引擎中的Kubernetes Secret失败-/为就绪过程设置oom分数导致错误

转载 作者:行者123 更新时间:2023-12-02 11:54:33 25 4
gpt4 key购买 nike

我创建了一个在kubernetes中完美运行的服务。

然后,我将连接字符串移至kubernetes secret ;这是我的yaml配置:

    env:
- name: AZURE_CONNECTION
valueFrom:
secretKeyRef:
name: azure
key: connection-string

但是从那以后,pod的调度失败

Error: failed to start container "myservice-api-host": Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:295: setting oom score for ready process caused \"write /proc/22658/oom_score_adj: invalid argument\""

最佳答案

原因是该 secret 是基于UTF16字符串进行base64编码的。

UTF8 中编码 secret 之后,Base64一切正常

关于kubernetes - 谷歌容器引擎中的Kubernetes Secret失败-/为就绪过程设置oom分数导致错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49296359/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com