TLS証明書のエラーでkubectlが使用できなくなった

「Unable to connect to the server: x509: certificate has expired or is not yet valid」のエラーがでたので対処したら大変だったので解説します。
Docker コンテナのデプロイ環境について

Docker コンテナのデプロイ環境について
「Unable to connect to the server: x509: certificate has expired or is not yet valid」のエラーがでたので対処したら大変だったので解説します。
Docker コンテナのデプロイ環境について