如何在舵图中配置码头入口点 [英] How to configure docker entrypoint in Helm charts

查看:15
本文介绍了如何在舵图中配置码头入口点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下docker-compose文件,我不知道如何在舵机deployment.yaml中设置working_direntrypoint。有没有人举例说明如何做到这一点?

docker-compose

version: "3.5"
services:               
    checklist:
        image: ...
        working_dir: /checklist
        entrypoint: ["dotnet", "Checklist.dll"]        
        ...

推荐答案

Helm使用的kubernetesDeployment与docker使用的术语不同。您需要定义:

  • command在Docker Compose中entrypoint的头盔中(请参见this post)
  • workingDir在Docker Compose中working_dir的头盔中(请参见this post)

对于您的示例,它将是:

...
containers:
 - name: checklist
   ...
   command: ["dotnet", "Checklist.dll"] # Docker entrypoint equivalent
   workingDir: "/checklist" # Docker working_dir equivalent

这篇关于如何在舵图中配置码头入口点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆