From 249d77c720e34a222a1e48516c036d146ace3b3b Mon Sep 17 00:00:00 2001 From: Arseny Sher Date: Mon, 12 Dec 2022 12:57:41 +0400 Subject: [PATCH] Deploy broker with L4 LB on old envs. To avoid having to configure MAX_CONCURRENT_STREAMS on L7 LB (as well as TLS & public DNS). --- .../neon-stress.neon-storage-broker.yaml | 28 +++++++++---------- .../production.neon-storage-broker.yaml | 28 +++++++++---------- .../staging.neon-storage-broker.yaml | 28 +++++++++---------- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/helm-values/neon-stress.neon-storage-broker.yaml b/.github/helm-values/neon-stress.neon-storage-broker.yaml index b141246df0..fd35c5e14e 100644 --- a/.github/helm-values/neon-stress.neon-storage-broker.yaml +++ b/.github/helm-values/neon-stress.neon-storage-broker.yaml @@ -3,22 +3,22 @@ podLabels: neon_env: neon-stress neon_service: storage-broker -ingress: - enabled: true +# Use L4 LB +service: + # service.annotations -- Annotations to add to the service annotations: - kubernetes.io/ingress.class: alb - alb.ingress.kubernetes.io/healthcheck-path: /status - alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' - alb.ingress.kubernetes.io/scheme: "internal" - alb.ingress.kubernetes.io/target-type: "ip" - alb.ingress.kubernetes.io/ssl-redirect: "443" - alb.ingress.kubernetes.io/backend-protocol-version: "GRPC" + service.beta.kubernetes.io/aws-load-balancer-type: external # use newer AWS Load Balancer Controller + service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip + service.beta.kubernetes.io/aws-load-balancer-scheme: internal # deploy LB to private subnet + # assign service to this name at external-dns + external-dns.alpha.kubernetes.io/hostname: storage-broker.neon-stress.local + # service.type -- Service type + type: LoadBalancer + # service.port -- broker listen port + port: 50051 - hosts: - - host: storage-broker-stress.stage.neon.tech - paths: - - path: / - pathType: Prefix +ingress: + enabled: false metrics: enabled: true diff --git a/.github/helm-values/production.neon-storage-broker.yaml b/.github/helm-values/production.neon-storage-broker.yaml index 299d6fa89e..395b023671 100644 --- a/.github/helm-values/production.neon-storage-broker.yaml +++ b/.github/helm-values/production.neon-storage-broker.yaml @@ -3,22 +3,22 @@ podLabels: neon_env: production neon_service: storage-broker -ingress: - enabled: true +# Use L4 LB +service: + # service.annotations -- Annotations to add to the service annotations: - kubernetes.io/ingress.class: alb - alb.ingress.kubernetes.io/healthcheck-path: /status - alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' - alb.ingress.kubernetes.io/scheme: "internal" - alb.ingress.kubernetes.io/target-type: "ip" - alb.ingress.kubernetes.io/ssl-redirect: "443" - alb.ingress.kubernetes.io/backend-protocol-version: "GRPC" + service.beta.kubernetes.io/aws-load-balancer-type: external # use newer AWS Load Balancer Controller + service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip + service.beta.kubernetes.io/aws-load-balancer-scheme: internal # deploy LB to private subnet + # assign service to this name at external-dns + external-dns.alpha.kubernetes.io/hostname: storage-broker.prod.local + # service.type -- Service type + type: LoadBalancer + # service.port -- broker listen port + port: 50051 - hosts: - - host: storage-broker.neon.tech - paths: - - path: / - pathType: Prefix +ingress: + enabled: false metrics: enabled: true diff --git a/.github/helm-values/staging.neon-storage-broker.yaml b/.github/helm-values/staging.neon-storage-broker.yaml index 54e1e1bba2..bffcf41ef0 100644 --- a/.github/helm-values/staging.neon-storage-broker.yaml +++ b/.github/helm-values/staging.neon-storage-broker.yaml @@ -3,22 +3,22 @@ podLabels: neon_env: staging neon_service: storage-broker -ingress: - enabled: true +# Use L4 LB +service: + # service.annotations -- Annotations to add to the service annotations: - kubernetes.io/ingress.class: alb - alb.ingress.kubernetes.io/healthcheck-path: /status - alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' - alb.ingress.kubernetes.io/scheme: "internal" - alb.ingress.kubernetes.io/target-type: "ip" - alb.ingress.kubernetes.io/ssl-redirect: "443" - alb.ingress.kubernetes.io/backend-protocol-version: "GRPC" + service.beta.kubernetes.io/aws-load-balancer-type: external # use newer AWS Load Balancer Controller + service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip + service.beta.kubernetes.io/aws-load-balancer-scheme: internal # deploy LB to private subnet + # assign service to this name at external-dns + external-dns.alpha.kubernetes.io/hostname: storage-broker.staging.local + # service.type -- Service type + type: LoadBalancer + # service.port -- broker listen port + port: 50051 - hosts: - - host: storage-broker.stage.neon.tech - paths: - - path: / - pathType: Prefix +ingress: + enabled: false metrics: enabled: true