LoginSignup
3
0

More than 5 years have passed since last update.

GKEのコンテナ内からノードの外部IPアドレスを取得する

Posted at

GKEのノードはCompute Engineのインスタンスなので,インスタンスのメタデータとして外部IPアドレスが取得できる。

curl --header "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/network-interf
aces/0/access-configs/0/external-ip

参考

インスタンス メタデータの格納と取得 | Compute Engine ドキュメント | Google Cloud

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0