]> Vexing Labs - letters.git/commitdiff
Update loadbalancer configuration.
authorAdam A.G. Shamblin <adam@vexingworkshop.com>
Sun, 23 Feb 2020 06:40:11 +0000 (23:40 -0700)
committerAdam A.G. Shamblin <adam@vexingworkshop.com>
Sun, 23 Feb 2020 06:40:11 +0000 (23:40 -0700)
hack/k8s/deployment.yaml

index 36534fdc3f9b17b727624044ca372c0b097d749b..8a4b14379678db109139a1374f4bcb3025bc0555 100644 (file)
@@ -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