kubernetes YAML
yaml语法
error: yaml: line 2: mapping values are not allowed in this context
key: value,注意在value和“:"之间要有一个空格;
error: yaml: line 3: found character that cannot start any token
YAML文件里面不能出现tab键
查看异常
kubectl describe pod XXX
查看某个pod的详细信息,尤其是可以看到日志信息
异常日志
for "POD" with ErrImagePull: "image pull failed for registry.access.redhat.com/rhel7/pod-infrastructure:latest, this may be because there are no credentials on this request. details: (open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory)"
(参考网调)其实当你打开/etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt路径去看的时候,发现其实是一个文件软连接,指向/etc/rhsm/XX文件夹里面;于是:
yum install -y *rhsm*
问题解决,看来其实每个/etc/文件夹下的子文件夹都对应一个service;如果发现某个/etc下面的软连接没有,则直接安装即可。rhsm是red hat subscription manager(RHSM)的简写,用于将系统注册到客户门户网站。为什么kubenetes需要用到RHSM,就不得而知,难道是kubenetes通过向redhat注册来看一下有多少用户使用kubenetes吗?
参考链接
http://www.voidcn.com/article/p-kpjywccp-bny.html
posted on 2018-03-18 13:46 张叫兽的技术研究院 阅读(1977) 评论(0) 编辑 收藏 举报