由于我有 fedora,我尝试运行他们教程中的 nginx 示例,但我没有让 nginx 显示任何内容。
当我运行这个容器时:
podman run --name mynginx1 -p 8080:80 -d nginx
Run Code Online (Sandbox Code Playgroud)
我收到欢迎来到 nginx!页。
但是当我尝试运行安装了目录的示例时:
podman run --name mynginx2 \
--mount type=bind,source=/home/simon/Dokumente/podman/nginx/content,target=/usr/share/nginx/html \
-p 9080:80 -d nginx
Run Code Online (Sandbox Code Playgroud)
我还收到欢迎来到 nginx!页,但我index.html在该源目录中有一个文件。
该容器有什么问题?
有时,当我使用 helm 图表时,并非所有我想要修改的内容都可以与给定值一起使用。使用 kustomize 修改渲染的 Helm Chart 是否实用?
像这样:
chart -> helm template -> kustomize -> kubectl deploy