Upgrade to Pro — share decks privately, control downloads, hide ads and more …

クラスタ外から ClusterIP の Service に いい感じにアクセスする / How to connect to ClusterIP Service from the outside of Kubernetes cluster

Kazuki Suda
November 27, 2019

クラスタ外から ClusterIP の Service に いい感じにアクセスする / How to connect to ClusterIP Service from the outside of Kubernetes cluster

【前夜祭】CloudNative Days Kansai 2019 Meetup / https://cloudnativedays.connpass.com/event/152321/

Kazuki Suda

November 27, 2019
Tweet

More Decks by Kazuki Suda

Other Decks in Technology

Transcript

  1. Kazuki Suda / @superbrothers ▶ Kubernetes Meetup Tokyo, Prometheus Tokyo

    Meetup, Cloud Native Deep Dive 共同主催者 ▶ Kubernetes Active Contributor ▶ CNCF Ambassador
  2. Kubernetes Service リソース ▶ 仮想 IP とポート ▶ L4 ロードバランサに相当

    ▶ いくつかのタイプ + ClusterIP (Internal) + NodePort + LoadBalancer (External) + Service my-svc タイプ: ClusterIP
 セレクタ: app=nginx ポート: 8080/tcp→80/tcp clusterIP: 10.0.171.239 Pod A Pod B ReplicaSet app: nginx app: nginx
  3. # How to install kubectl open-svc plugin $ kubectl krew

    install open-svc * https://github.com/kubernetes-sigs/krew