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