2.5. Azure シークレットの作成
Azure 仮想マシン (VM) 作成 API に必要な SSH 鍵シークレットを作成する必要があります。Azure では SSH 公開鍵のみが必要です。OpenShift sandboxed containers は仮想マシン内の SSH を無効にするため、鍵は仮想マシン内では効果がありません。
手順
次のコマンドを実行して、SSH キーペアを生成します。
$ ssh-keygen -f ./id_rsa -N ""以下のコマンドを実行して
Secretオブジェクトを作成します。$ oc create secret generic ssh-key-secret \ -n openshift-sandboxed-containers-operator \ --from-file=id_rsa.pub=./id_rsa.pub \ --from-file=id_rsa=./id_rsa作成した SSH 鍵を削除します。
$ shred --remove id_rsa.pub id_rsa