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?

Ciliumが自動作成するGateway API用のServiceTypeをClusterIPに変更したい

Posted at

変更前の状態

こんな感じになっていると思います。LoadBalancerタイプのServiceとして作成されます。

❯ kubectl -n kube-system get svc
NAME                                       TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                        AGE
cilium-gateway-gateway                     LoadBalancer   10.97.2.250      <pending>     80:31040/TCP                   4m28s
hubble-peer                                ClusterIP      10.99.109.105    <none>        443/TCP                        6m4s
hubble-relay                               ClusterIP      10.100.137.232   <none>        80/TCP                         50m

これをClusterIPに変えたいです。

設定方法

Helm valueのgatewayAPI.hostNetwork.enabledtrueにしてください。

変更後の状態

❯ kubectl -n kube-system get svc
NAME                                       TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                        AGE
cilium-gateway-gateway                     ClusterIP   10.96.152.99     <none>        80/TCP                         67s
hubble-peer                                ClusterIP   10.96.52.65      <none>        443/TCP                        71s
hubble-relay                               ClusterIP   10.98.207.91     <none>        80/TCP                         71s

できました!

参考URL

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?