Skip to content

Commit

Permalink
SOC: ssl policy creation script and use for internet facing load bala…
Browse files Browse the repository at this point in the history
…ncers (#2279)

* ssl policy creation script

* Use new ssl policy

* final state
  • Loading branch information
spolu authored Oct 26, 2023
1 parent ae13d84 commit 38fd2b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions k8s/apply_infra.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
#!/bin/bash

set -e


function apply_deployment {
# This function applies a deployment, but if the deployment already exists,
# This function applies a deployment, but if the deployment already exists,
# it will replace the image with the current image to avoid a rolling update
DEPLOYMENT_NAME=$1
YAML_FILE="$(dirname "$0")/deployments/$DEPLOYMENT_NAME.yaml"
Expand Down Expand Up @@ -40,7 +40,7 @@ else
helm repo update
helm install dust-datadog-agent datadog/datadog -f "$(dirname "$0")/datadog-values.yml" \
--set datadog.apiKey=$DD_API_KEY \
--set datadog.appKey=$DD_APP_KEY
--set datadog.appKey=$DD_APP_KEY
fi


Expand Down
5 changes: 5 additions & 0 deletions k8s/create_ssl_policy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

gcloud compute ssl-policies create dust-front-ssl-policy \
--profile MODERN \
--min-tls-version 1.2
1 change: 1 addition & 0 deletions k8s/frontend-configs/dust-frontend-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ spec:
redirectToHttps:
enabled: true
responseCodeName: MOVED_PERMANENTLY_DEFAULT
sslPolicy: dust-front-ssl-policy

0 comments on commit 38fd2b1

Please sign in to comment.