GithubHelp home page GithubHelp logo

Comments (5)

dotbalo avatar dotbalo commented on August 17, 2024

然后我看了一下证书,没有一个过期。。

[root@k8s-master01 pki]# for i in `find . -name "*.crt"`;do  cfssl-certinfo -cert $i |  grep not_after;done
  "not_after": "2028-11-27T11:16:30Z",
  "not_after": "2019-11-30T11:16:30Z",
  "not_after": "2019-11-30T11:16:31Z",
  "not_after": "2028-11-27T11:16:31Z",
  "not_after": "2019-11-30T11:16:31Z",
  "not_after": "2028-11-27T11:16:32Z",
  "not_after": "2019-11-30T11:16:32Z",
  "not_after": "2019-11-30T11:16:32Z",
  "not_after": "2019-11-30T11:16:33Z",
  "not_after": "2019-11-30T11:16:33Z",

from kubeadm-ha.

cookeem avatar cookeem commented on August 17, 2024

这个感觉是kubectl的客户端证书提示的错误。先检查一下kubelet的日志,看看是集群问题还是客户端证书问题?有没有设置KUBECONFIG环境变量?

from kubeadm-ha.

dotbalo avatar dotbalo commented on August 17, 2024

您好,环境变量有设置的

[root@k8s-master01 ~]# cat .bashrc 
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi
export KUBECONFIG=/etc/kubernetes/admin.conf

这是今天上午刚搭建的集群,当时好好的,下午就不行了。
这是master的日志
image

这是node的日志
image

然后我发现所有的pod都是新启动的,一直是这个状态
image

from kubeadm-ha.

cookeem avatar cookeem commented on August 17, 2024

证书有问题,建议你重建一次。

from kubeadm-ha.

dotbalo avatar dotbalo commented on August 17, 2024

好的,非常感谢

from kubeadm-ha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.