ラベル gcp の投稿を表示しています。 すべての投稿を表示
ラベル gcp の投稿を表示しています。 すべての投稿を表示

2019/02/10

k8s message=Required "container.clusters.get" permission(s) for

circleICIの作業でGCR PUSH、K8S Deployの作業で、権限がない言われた。。
適切にCI のServiceAccountに
```
Kubernetes Engine Admin
Kubernetes Engine Cluster Admin
Storage Admin
Storage Object Viewer
```
を与えが、、それで権限ないで意味がわからない。。。イライラ

で、CI ServiceAccountを削除して、作り直し、だめ。。。
で、違う名前のCI ServiceAccountを作成して、OK
意味がわからない。。。

推測で、検証待ち。。
昔、誰が、権限がない同じ名前のCI用ServiceAccountを作成したことがあるからだめが、、

2018/10/16

docker gae EMPTRY_RESPONSE


docker+gaeの構成で、Admin Consoleを見たいが、EMPTRY_RESPONSEで見えない。。

EMPTRY_RESPONSE means that the TCP connection into the docker container seemed to be sucessful, 
however the server side closed the connection without sending anything back. 

curl -v http://localhost:8000 


Your issue is that you are binding to the 127.0.0.1:8025 inside your code. This makes the code work from inside the container but not outside.
You need to bind to 0.0.0.0:8025 to bind to all interfaces inside the container. So traffic coming from outside of the container is also accepted by your Go app

When you get this error it means youve exposed the right port in your Dockerfile, 
but you have to make sure the app within your container is binding to 0.0.0.0 instead of localhost or 127.0.0.1.
I got this error using Angular CLIng serve within a container. 
I had to add –host=0.0.0.0 to the ENTRYPOINT arguments. 
If youre using a different framework check for a similar command-line argument, configuration parameter or setting.

・解決!—port 8080 --admin_port 8000 --skip_sdk_update_check yes --host 0.0.0.0
--admin_hostデフォルトはlocalhost—admin_host 0.0.0.0 を追加して見える
--admin_host=ADMIN_HOST
ローカル開発用サーバーの管理コンソールがバインドするホスト名(デフォルト: localhost)。
--admin_port=ADMIN_PORT

2018/09/30

gae log

"google.golang.org/appengine/log"を使う
golangの標準のlogではなく。 

2018/03/27

Google_application_credentials

好像是gcloud或者机器登录帐号,或者安装gcp sdk的时候,这个变量被设置了。
gcloud auth login
设置了之后,eclipse还是用另外一个账号。。
为什么呢?以前解决了,又忘记了。。。
写在笔记本上也找不着了。

细细地查了一下

gcloud auth application-default login

试了一下,可以了。。。

在我可以理解的范围之内,我只能理解成故弄玄虚。。