-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.sh
30 lines (27 loc) · 1.24 KB
/
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
logger "$INFO" "installing $datadogReleaseName in $namespace namespace...";
setVerbose;
helm upgrade "$datadogReleaseName" datadog/datadog --version 3.69.0 \
--install \
--set "datadog.apiKey=$DATADOG_APIKEY" \
--set "datadog.site=$DATADOG_SITE" \
--set "datadog.kubelet.tlsVerify=false" \
--set "datadog.logLevel=debug" \
--set "datadog.logs.enabled=true" \
--set "datadog.logs.containerCollectAll=true" \
--set "datadog.containerIncludeLogs=image:docker.tyk.io/.* image:tykio/.*" \
--set "datadog.containerExcludeLogs=image:.*" \
--set "datadog.dogstatsd.port=$DATADOG_SERVICE_PORT" \
--set "datadog.dogstatsd.tags=env:$namespace" \
--set "datadog.dogstatsd.originDetection=true" \
--set "datadog.dogstatsd.nonLocalTraffic=true" \
--set "agents.containers.agent.healthPort=$DATADOG_AGENT_HEALTH_SERVICE_PORT" \
--namespace "$namespace" \
"${helmFlags[@]}" > /dev/null;
unsetVerbose;
source "$datadogDeploymentPath/health.sh";
source "$datadogDeploymentPath/pump.sh";
source "$datadogDeploymentPath/dashboard.sh";
source "$datadogDeploymentPath/pipeline.sh";
addSummary "\tDatadog Agent deployed\n \
\tTyk Dashboard: https://app.$DATADOG_SITE$(echo "$dashboard" | jq -r '.url')\n \
\tDatadog Logs: https://app.$DATADOG_SITE/logs";