Skip to content

Commit

Permalink
Update GH action 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Hofmann committed Oct 9, 2024
1 parent 816496a commit c93beae
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/deploy-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,20 @@ jobs:
echo "Load balancer service already exists"
else
echo "Creating Load Balancer Service..."
kubectl expose deployment ets-template-sites-cms-sandbox --type=LoadBalancer --name=ets-template-sites-cms-sandbox-load-balancer --port=80 --target-port=8055
kubectl annotate service ets-template-sites-cms-sandbox-load-balancer service.beta.kubernetes.io/do-loadbalancer-certificate-name="ets-main"
kubectl annotate service ets-template-sites-cms-sandbox-load-balancer service.beta.kubernetes.io/do-loadbalancer-name="ets-template-sites-sandbox-load-balancer"
kubectl expose deployment ets-template-sites-cms-sandbox --type=LoadBalancer --name=ets-template-sites-cms-sandbox-load-balancer --port=80 --target-port=8055 --port=443 --target-port=8055
kubectl annotate service ets-template-sites-cms-sandbox-load-balancer \
service.beta.kubernetes.io/do-loadbalancer-name="ets-template-sites-sandbox-load-balancer" \
service.beta.kubernetes.io/do-loadbalancer-protocol="http" \
service.beta.kubernetes.io/do-loadbalancer-tls-ports="443" \
service.beta.kubernetes.io/do-loadbalancer-certificate-name="ets-main" \
service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https="true" \
service.beta.kubernetes.io/do-loadbalancer-healthcheck-port: "80" \
service.beta.kubernetes.io/do-loadbalancer-healthcheck-protocol: "https" \
service.beta.kubernetes.io/do-loadbalancer-healthcheck-path: "/health" \
service.beta.kubernetes.io/do-loadbalancer-healthcheck-check-interval-seconds: "10" \
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"
fi
- name: Verify Deployment
Expand Down

0 comments on commit c93beae

Please sign in to comment.