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 件のコメント:

コメントを投稿

ハッキングツール一覧(ホワイトハッカー編)

  1. ポート・ネットワークスキャン系 Nmap :標準。ポート・サービス検出・OS推定まで。 # 単純なポートスキャン nmap 192.168.1.10 # 開いているポートとサービスを詳細にスキャン nmap -sV -O 192.168.1.10 # 複数ホストをスキャ...