2019年7月1日月曜日

gcloudコマンドのインストール方法 for Mac

1)gcloudコマンドのインストールを行う。
curl https://sdk.cloud.google.com | bash
gcloud init
exec -l $SHELL
which gcloud

2)gclouコマンドの初期化を行う。
gcloud init

3)自宅のMacとGCPに接続する手続きを行う。
ssh-keygen -t rsa -C "メールアドレス"
ssh -i ~/.ssh/id_rsa メールアドレス@IPアドレス

4)kubectlコマンドのインストを行う。
gcloud components update kubectl

5)念のため、gcloudコマンドのアップデートを行う。
gcloud components update


[その他:メモ]
gcloud config list
=====================================
[compute]
region = asia-northeast1
zone = asia-northeast1-b
[core]
account = **************
disable_usage_reporting = False
project = hardy-position-*******
====================================

以下、アカウントリスト
gcloud auth list
==============================================
  Credentialed Accounts
ACTIVE  ACCOUNT
        d*****e@gmail.com
*       n******@gmail.com

To set the active account, run:
    $ gcloud config set account `ACCOUNT`
=============================================

0 件のコメント:

コメントを投稿

ローカルLLMでコーディングさせるポイント

 簡単な指示で、依頼するとコンテキストオーバーで記憶喪失になって コードの内容が一致しないことが起こるので、work.mdみたいな作業メモを取らせたるのがよい 途中から、別スレッドに再実施する場合でも、work.mdが引き継ぎとして 参照して実施してくれるのがポイント