0

minikubeのhttpdポッドのハンズオンに少し詰まった(なんとかなった)

問題?

https://megalodon.jp/2019-0928-2322-30/https://knowledge.sakura.ad.jp:443/15320/
のページの
「Minikube環境内のコンテナにアクセスする」というパートで少し詰まった。
ここの記述の

apiVersion: v1
kind: Service
metadata:
  name: httpd-service
spec:
  type: LoadBalancer
  ports:
    - port: 80
  selector:
    k8s-app: httpd-test

というやつだが、
以下のようにしなくては「It works!!」に永遠にたどり着けない。

解決

apiVersion: v1
kind: Service
metadata:
  name: httpd-service
spec:
  type: LoadBalancer
  ports:
    - port: 80
  selector:
    app: httpd

とする。

上記の記事はチュートリアルとか書いてあるわけじゃないけど、ハンズオン形式に近いと思う。
記述をちゃんと読めば気づくことだけど、
ハンズオンの良さは、記述をじっくり読む前に手を動かせることだ。
文脈的には、いきなりhttpd-testなど登場させなくてもいいはず。
このタイプの記事にしては不親切じゃないかな。

追記

私が読み飛ばしていたせいだと判明。申し訳ない。
だけど、画像でうっすい灰色の文字でhttpd-testなんて書いてあったって、わかんないよ。
大事な部分とは思えないような主張の弱さ。

横着して文字起こししなかったんだろうな。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away