From aa4f95d818bb41b9e37466ba712309b45a5eb670 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Sat, 23 Mar 2019 09:26:57 -0500 Subject: [PATCH] Add IP based LB (#2055) --- k8s/beacon-chain/beacon-chain.service.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/k8s/beacon-chain/beacon-chain.service.yaml b/k8s/beacon-chain/beacon-chain.service.yaml index 7e4da20b4..d69a528bd 100644 --- a/k8s/beacon-chain/beacon-chain.service.yaml +++ b/k8s/beacon-chain/beacon-chain.service.yaml @@ -50,3 +50,15 @@ spec: port: number: 4000 host: beacon-chain.beacon-chain.svc.cluster.local +--- + apiVersion: networking.istio.io/v1alpha3 + kind: DestinationRule + metadata: + name: beacon-chain + namespace: beacon-chain + spec: + host: beacon-chain.beacon-chain.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + useSourceIp: true