From: Adam A.G. Shamblin Date: Sun, 23 Feb 2020 06:40:11 +0000 (-0700) Subject: Update loadbalancer configuration. X-Git-Url: https://git.vexinglabs.com/?a=commitdiff_plain;h=c5207dca7a190bf5997a1254ca7a2b181eca8ded;p=letters.git Update loadbalancer configuration. --- diff --git a/hack/k8s/deployment.yaml b/hack/k8s/deployment.yaml index 36534fd..8a4b143 100644 --- a/hack/k8s/deployment.yaml +++ b/hack/k8s/deployment.yaml @@ -2,13 +2,31 @@ kind: Service apiVersion: v1 metadata: name: letters + annotations: + service.beta.kubernetes.io/do-loadbalancer-algorithm: "least_connections" + service.beta.kubernetes.io/do-loadbalancer-healthcheck-protocol: "http" + service.beta.kubernetes.io/do-loadbalancer-healthcheck-path: "/" + service.beta.kubernetes.io/do-loadbalancer-healthcheck-check-interval-seconds: "3" + service.beta.kubernetes.io/do-loadbalancer-healthcheck-response-timeout-seconds: "5" + service.beta.kubernetes.io/do-loadbalancer-healthcheck-unhealthy-threshold: "3" + service.beta.kubernetes.io/do-loadbalancer-healthcheck-healthy-threshold: "5" + service.beta.kubernetes.io/do-loadbalancer-protocol: "http" + service.beta.kubernetes.io/do-loadbalancer-algorithm: "round_robin" + service.beta.kubernetes.io/do-loadbalancer-certificate-id: "836001ec-5652-4d3d-bc7a-691780e10bfb" + service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true" spec: + type: LoadBalancer selector: app: letters ports: - - protocol: TCP + - name: http + protocol: TCP port: 80 targetPort: 80 + - name: https + protocol: TCP + port: 443 + targetPort: 80 --- kind: Deployment apiVersion: apps/v1