From 8c77f8101b0443b2f8977b68a2ff6a87cd1a442d Mon Sep 17 00:00:00 2001 From: outductor Date: Wed, 20 Dec 2023 13:00:08 +0900 Subject: [PATCH] implement loadBalancerClass --- .../bungeecord/bungeesemaphore-redis.yaml | 10 +++------- .../bungeecord/redisbungee-redis.yaml | 10 +++------- .../seichi-minecraft/redis/bungeesemaphore-redis.yaml | 10 +++------- .../apps/seichi-minecraft/redis/redisbungee-redis.yaml | 10 +++------- 4 files changed, 12 insertions(+), 28 deletions(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeesemaphore-redis.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeesemaphore-redis.yaml index 51702c24b..f6a13e653 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeesemaphore-redis.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeesemaphore-redis.yaml @@ -19,14 +19,10 @@ spec: notify-keyspace-events "Eg$x" master: service: - # loadBalancerIP has been deprecated in k8s v1.24 - # ciliumのlb-ipamを使用しているので今後それに沿った記載に改める必要がある - # https://docs.cilium.io/en/stable/network/lb-ipam/#requesting-ips - # FIXME .spec.loadBalancerClass が未指定の場合、lb-ipamによるIPアサインしか行われない - # 負荷分散を実施するには .spec.loadBalancerClass を明示的に指定する必要がある - # https://docs.cilium.io/en/latest/network/lb-ipam/#loadbalancerclass type: LoadBalancer - loadBalancerIP: 10.96.0.135 + loadBalancerClass: io.cilium/bgp-control-plane + annotations: + "io.cilium/lb-ipam-ips": "10.96.0.135" resources: requests: cpu: "250m" diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/redisbungee-redis.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/redisbungee-redis.yaml index 96169e615..3e173c47b 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/redisbungee-redis.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/redisbungee-redis.yaml @@ -19,14 +19,10 @@ spec: notify-keyspace-events "Eg$x" master: service: - # loadBalancerIP has been deprecated in k8s v1.24 - # ciliumのlb-ipamを使用しているので今後それに沿った記載に改める必要がある - # https://docs.cilium.io/en/stable/network/lb-ipam/#requesting-ips - # FIXME .spec.loadBalancerClass が未指定の場合、lb-ipamによるIPアサインしか行われない - # 負荷分散を実施するには .spec.loadBalancerClass を明示的に指定する必要がある - # https://docs.cilium.io/en/latest/network/lb-ipam/#loadbalancerclass type: LoadBalancer - loadBalancerIP: 10.96.0.134 + loadBalancerClass: io.cilium/bgp-control-plane + annotations: + "io.cilium/lb-ipam-ips": "10.96.0.134" resources: requests: cpu: "250m" diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/bungeesemaphore-redis.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/bungeesemaphore-redis.yaml index 28e50a9bf..95f18f4e8 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/bungeesemaphore-redis.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/bungeesemaphore-redis.yaml @@ -19,14 +19,10 @@ spec: notify-keyspace-events "Eg$x" master: service: - # loadBalancerIP has been deprecated in k8s v1.24 - # ciliumのlb-ipamを使用しているので今後それに沿った記載に改める必要がある - # https://docs.cilium.io/en/stable/network/lb-ipam/#requesting-ips - # FIXME .spec.loadBalancerClass が未指定の場合、lb-ipamによるIPアサインしか行われない - # 負荷分散を実施するには .spec.loadBalancerClass を明示的に指定する必要がある - # https://docs.cilium.io/en/latest/network/lb-ipam/#loadbalancerclass type: LoadBalancer - loadBalancerIP: 10.96.0.133 + loadBalancerClass: io.cilium/bgp-control-plane + annotations: + "io.cilium/lb-ipam-ips": "10.96.0.133" resources: requests: cpu: "250m" diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/redisbungee-redis.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/redisbungee-redis.yaml index 7a7cc576b..70dbdc6d7 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/redisbungee-redis.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/redis/redisbungee-redis.yaml @@ -19,14 +19,10 @@ spec: notify-keyspace-events "Eg$x" master: service: - # loadBalancerIP has been deprecated in k8s v1.24 - # ciliumのlb-ipamを使用しているので今後それに沿った記載に改める必要がある - # https://docs.cilium.io/en/stable/network/lb-ipam/#requesting-ips - # FIXME .spec.loadBalancerClass が未指定の場合、lb-ipamによるIPアサインしか行われない - # 負荷分散を実施するには .spec.loadBalancerClass を明示的に指定する必要がある - # https://docs.cilium.io/en/latest/network/lb-ipam/#loadbalancerclass type: LoadBalancer - loadBalancerIP: 10.96.0.132 + loadBalancerClass: io.cilium/bgp-control-plane + annotations: + "io.cilium/lb-ipam-ips": "10.96.0.132" resources: requests: cpu: "250m"