今GCPにVMインスタンス(centos7)を立ててkubernetesをインストールしたいと思っています
https://qiita.com/kentarosasaki/items/2232113b44b016a56adc
のサイトを見てgcloudはインストールできました。
ただgcloud --version
でhttp://doi-t.hatenablog.com/entry/2018/03/21/213715のサイトのように
$ gcloud --version Google Cloud SDK 193.0.0 alpha 2017.09.15 beta 2017.09.15 bq 2.0.30 container-builder-local core 2018.03.09 gsutil 4.28 kubectl←でないので
https://kubernetes.io/docs/tasks/tools/install-kubectl/
を見てInstall kubectl binary via native package management
を入れました。
そして
[root@instance-1 ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T20:17:28Z", GoVersion:"go1.10.2", Compiler:"gc", Platform:"linux/amd64"} The connection to the server localhost:8080 was refused - did you specify the right host or port?
http://otiai10.hatenablog.com/entry/2016/04/07/061601
を見て
[root@instance-1 ~]# gcloud config set project Updated property [core/project]. [root@instance-1 ~]# gcloud config set compute/zone us-east1-b Updated property [compute/zone]. [root@instance-1 ~]# gcloud config set container/cluster ??←cluster [root@instance-1 ~]# gcloud config list region = us-east1 zone = us-east1-b [container] cluster = instance-1 [core] account = メールアドレス disable_usage_reporting = False project = rising-guide-209510
gcloud config set container/cluster ??←cluster
このclusterはなにをいれればいいのでしょうか?
なによりThe connection to the server localhost:8080 was refused - did you specify the right host or port?
を消したいです。
教えてください。よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー