• kubernetes:关于创建pod中结点始终处于creating状态的问题解决(Error syncing pod, skipping: failed to "StartContainer" for "POD" with ErrImagePull: "image pull failed for registry.access.redhat.com/rhel7/...)


    通过以下代码获得certificates,注意,必须对于master结点和两个node结点机器上都需要获取

    通过 kubectl describe pod xxx获得报错信息:

    
    
    Error syncing pod, skipping: failed to "StartContainer" 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)"

    通过一下命令解决:

    yum install -y *rhsm*
    
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm
    
    rpm2cpio python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm | cpio -iv --to-stdout ./etc/rhsm/ca/redhat-uep.pem | tee /etc/rhsm/ca/redhat-uep.pem

    注意必须是对每台机器都使用这个指令,然后就能获取到certificate。

     接下来检查pod的状态就能发现pod已经成功被创建,并且状态是running

    转载自:https://www.jianshu.com/p/adf2aebdc381

  • 相关阅读:
    git回撤
    Mac微信双开
    Mac安装Flutter
    Swift对比Dart
    flutter创建项目
    Mac安装Dart SDK
    windows 上部署 kafka 做测试
    目标检测之YOLO算法:YOLOv1,YOLOv2,YOLOv3,TinyYOLO,YOLOv4,YOLOv5,YOLObile,YOLOF,YOLOX详解(转)
    Oracle TNS01106
    转 ORA02030: can only select from fixed tables/views问题处理方法
  • 原文地址:https://www.cnblogs.com/randy-lo/p/13321148.html
Copyright © 2020-2023  润新知