版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/84622248
我们在撰写Kubernetes pod的yaml文件时,一定都为Kubernetes yaml文件复杂的语法苦恼过。
其实Kubernetes是提供了很好的在线(online)文档的。
命令:
kubectl explain pod.spec | grep -i "containers" -5
很快就能看到pod.spec这个区域应该怎么填: