LoginSignup
5
4

More than 5 years have passed since last update.

k8sのロードバランサでIP制限

Posted at

AWS EKSでk8s環境を構築してて、まだ社内にしか公開しちゃダメ!とか言う時の設定

Service type LoadBalancer の設定で、loadBalancerSourceRanges でアクセス許可するIPを指定してやる

spec:
  loadBalancerSourceRanges:
  - "143.231.0.0/16"

NLBって書いてるけど、CLBでもいける
https://kubernetes.io/docs/concepts/services-networking/service/#network-load-balancer-support-on-aws-alpha

5
4
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
5
4