-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup-local-k8s.sh
More file actions
15 lines (12 loc) · 951 Bytes
/
setup-local-k8s.sh
File metadata and controls
15 lines (12 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
sbt docker:publishLocal
INIT_MYSQL_SQL_PATH="`pwd`/tools/mysql/"
. ./tools/datadog/.env
sed -i -e 's!INIT_MYSQL_SQL_PATH!'${INIT_MYSQL_SQL_PATH}'!' ./infrastructure/staging/gcp/k8s/db-deployment.yml
kubectl apply -f "https://raw.githubusercontent.com/DataDog/datadog-agent/master/Dockerfiles/manifests/rbac/clusterrole.yaml"
kubectl apply -f "https://raw.githubusercontent.com/DataDog/datadog-agent/master/Dockerfiles/manifests/rbac/serviceaccount.yaml"
kubectl apply -f "https://raw.githubusercontent.com/DataDog/datadog-agent/master/Dockerfiles/manifests/rbac/clusterrolebinding.yaml"
kubectl create secret generic datadog-secret --from-literal api-key=${DD_API_KEY}
kubectl apply -f ./infrastructure/staging/gcp/k8s/datadog-deployment.yml
kubectl apply -f ./infrastructure/staging/gcp/k8s/db-secret.yml
kubectl apply -f ./infrastructure/staging/gcp/k8s/db-deployment.yml
kubectl apply -f ./infrastructure/staging/gcp/k8s/app-deployment-local.yml