Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.13 KB

08-View-Certificate-Details.md

File metadata and controls

53 lines (33 loc) · 1.13 KB

View Certificate Details

In this section, we will take a look how to view certificates in a kubernetes cluster.

View Certs

hrd

hrd1

  • To view the details of the certificate

    $ openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout
    

    hrd2

Follow the same procedure to identify information about of all the other certificates

hrd3

Inspect Server Logs - Hardware setup

  • Inspect server logs using journalctl

    $ journalctl -u etcd.service -l
    

    hrd4

Inspect Server Logs - kubeadm setup

  • View logs using kubectl

    $ kubectl logs etcd-master
    

    hrd5

  • View logs using docker ps and docker logs

    $ docker ps -a
    $ docker logs <container-id>
    

    hrd6

K8s Reference Docs