1

Docker 转 k8s 求助

 2 years ago
source link: https://www.v2ex.com/t/821235
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Kubernetes

Docker 转 k8s 求助

  Davic1 · 10 分钟前 · 75 次点击

原来是用单机容器部署的, 现在要上 k8s,遇到两个问题

  1. 原来容器里要读取配置文件, 放在 K8S 上是直接把所有配置项写在 ConfigMap 里吗? (把镜像里配置文件对应的值替换为环境变量, 然后用 ConfigMap 设置环境变量?)

  2. 原来的容器(A)会依赖另一个容器做日志读取(B), 那在 K8S 里是分成两个 Deployment, 分别部署 A 和 B 还是用一个 Deployment 呢


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK