zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Delphi异常处理try except语句和try finally语句用法以及区别
    test
    Infopath resource
    C# IDE
    操作数据库
    不同版本数据库的导入
    workflow for sharepoint 2007
    http://www.cnblogs.com/BearStudyHard/archive/2008/03/26/1123267.html
    深入浅出InfoPath——安装VSTO
    如何使用Lotuscript管理Excel中的工作表?
  • 原文地址:https://www.cnblogs.com/xiashiwendao/p/8595254.html
Copyright © 2011-2022 走看看