kubee cert command
Overview
Section titled “Overview”Print cert in plain text
Commands
Section titled “Commands”config-client (Kubeconfig client)
Section titled “config-client (Kubeconfig client)”The cert in kubeconfig at user.client-certificate-data
export KUBECONFIG=~/.kube/configkubee cert config-clientconfig-certificate-authority (Kubeconfig cluster TLS CA)
Section titled “config-certificate-authority (Kubeconfig cluster TLS CA)”The cert in kubeconfig at cluster.certificate-authority-data
It’s the cert that signed the cluster certification used by kubeconfig to authenticate the server.
export KUBECONFIG=~/.kube/configkubee cert config-certificate-authoritycluster-tls (Cluster TLS Cert)
Section titled “cluster-tls (Cluster TLS Cert)”The TLS cert of the server at cluster.server
It’s the cert that is presented to kubeconfig to authenticate the server.
export KUBECONFIG=~/.kube/configkubee cert cluster-tlssecret-tls (TLS Cert stored as secret in Kubernetes)
Section titled “secret-tls (TLS Cert stored as secret in Kubernetes)”Print the tls certificate stored in a secret in plain text
export KUBECONFIG=~/.kube/configkubee cert secret-tlsIt executes a kubectl get secret with a selection at .data.tls.crt
secret-ca (CA Cert stored as secret in Kubernetes)
Section titled “secret-ca (CA Cert stored as secret in Kubernetes)”Print the ca certificate stored in a secret in plain text
export KUBECONFIG=~/.kube/configkubee cert secret-caIt executes a kubectl get secret with a selection at .data.ca.crt
backup
Section titled “backup”The backup command downloads:
- the cert manager resources. ie
issuer,clusterissuerandcertresources - the issued tls secret
in the backup directory
restore
Section titled “restore”The restore command applies in a out-of-place mode, meaning that it will not restore / filter out:
- the
sslip.ioandnip.iocert and tls secret resources - the
kube-systemresources to not replace the APIk3s-servingcerts.
Example:
kubee --cluster $KUBEE_CLUSTER_NAME cert restore