OpenShift 4 で CSR を使用して system:admin ユーザーの kubeconfig を再作成する方法 (代替手段)
Issue
kubeconfigファイルが見つからないため、ファイルを再作成してsystem:adminのクライアント証明書認証を設定する必要があります。- RHOCP 4 でインストール時の
kubeconfigファイルを再作成することは可能ですか? -
証明書エラーが原因で元の
kubeconfigファイルを使用してクラスターにアクセスできません。$ oc get nodes --kubeconfig=<install directory>/auth/kubeconfig Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kube-apiserver-lb-signer")
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.6 以降
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.