0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【GCP】GKE上にnginxを構築

Posted at

#関連ブログ
【GCP】GKEを触ってみたも参考に

#手順
nginxもすぐに作れるということでやっていく。

kubectl expose deployment nginx --type=LoadBalancer
これを打った時に以下のエラー

error: couldn't find port via --port flag or introspection
See 'kubectl expose -h' for help and examples
確かに、コンソール上もロードバランサができてない。

https://stackoverflow.com/questions/46228628/exposing-the-hello-minikube-service-fails-to-find-a-port
ここにあるが、要はポート指定してないよねということみたい(上記は英語)

http://tjtjtj.hatenablog.com/entry/2019/01/30/230000
ここの指定の仕方でやったらいけた。
kubectl expose deployment nginx --port 80 --type LoadBalancer
これをやるとロードバランサがコンソール上もできあがってた。

ここまでやってできた。

削除して終了。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?