项目在没有容器化之前,证书和配置通常放到一个目录中,现在容器化之后依然如此,这就有个问题,当把证书放到 Secret、配置放到 ConfigMap中,之后 mount 到容器特定目录时互相覆盖,影响服务正常运行...target of the bind mount....os.IsExist(err) {
return "", fmt.Errorf("error creating directory %s: %s", bindPathTarget, err)..., pipe,
// socket, ...), bind-mounting them into a file correctly changes type
// of the target file...= nil {
return "", fmt.Errorf("error creating file %s: %s", bindPathTarget, err)
}
}
总结
本文主要介绍了通过使用