默认的证书是有年限的

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[root@k8s-master ~]# cd /etc/kubernetes/pki/
[root@k8s-master pki]# ls
apiserver.crt apiserver-kubelet-client.key devuser.kubeconfig front-proxy-client.crt
apiserver-etcd-client.crt ca.crt devuser.pem front-proxy-client.key
apiserver-etcd-client.key ca.key etcd sa.key
apiserver.key devuser.csr front-proxy-ca.crt sa.pub
apiserver-kubelet-client.crt devuser-key.pem front-proxy-ca.key
[root@k8s-master pki]# openssl x509 -in apiserver.crt -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 8026942590652842542 (0x6f656dc1f451022e)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=kubernetes
Validity
Not Before: Jan 28 08:20:48 2020 GMT
Not After : Jan 27 08:20:48 2021 GMT
...
...省略
...
[root@k8s-master pki]# openssl x509 -in ca.crt -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 0 (0x0)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=kubernetes
Validity
Not Before: Jan 28 08:20:48 2020 GMT
Not After : Jan 25 08:20:48 2030 GMT
阅读全文 »

  • Elasticsearch:是一个搜索引擎,负责存储日志并提供查询接口;
  • Fluentd:负责从 Kubernetes 搜集日志,每个node节点上面的fluentd监控并收集该节点上面的系统日志,并将处理过后的日志信息发送给Elasticsearch;
  • Kibana:提供了一个 Web GUI,用户可以浏览和搜索存储在 Elasticsearch 中的日志。

部署EFK

阅读全文 »