sparse-intern-71089
09/28/2021, 3:53 PMbored-table-20691
09/28/2021, 4:07 PMbored-table-20691
09/28/2021, 4:08 PMbrave-ambulance-98491
09/28/2021, 5:12 PMSecret
has a fixed name in the helm chart? The issue with ConfigMap
mentioned up above likely applies to Secret
as well: When you use a fixed name for a Secret
, Pulumi deletes and replaces it in order to force a recreation of pods that mount the secret in.
If you can have Pulumi name the Secret
for you, it will create a new secret, update the pods to depend on it, and perform a standard rollout.rapid-soccer-18092
09/29/2021, 4:06 AMSecret
or ConfigMap
for Datadog, but these are created when deploying the chart:bored-table-20691
09/29/2021, 4:07 AMrapid-soccer-18092
09/29/2021, 4:08 AMvar datadogChart = new Chart("datadog-chart",
new ChartArgs
{
Chart = "datadog",
Version = args.DatadogChartVersion,
Namespace = "default",
Values = new Dictionary<string, object>
{
["datadog"] = new Dictionary<string, object>
{
["apiKey"] = args.DatadogApiKey,
["site"] = "<http://datadoghq.eu|datadoghq.eu>",
["logs"] = new Dictionary<string, object>
{
["enabled"] = true,
["containerCollectAll"] = true
},
["kubelet"] = new Dictionary<string, object>
{
["tlsVerify"] = false
}
},
},
FetchOptions = new ChartFetchArgs
{
Repo = "<https://helm.datadoghq.com>"
}
},
new ComponentResourceOptions
{
Provider = provider,
});
rapid-soccer-18092
09/29/2021, 4:09 AMrapid-soccer-18092
09/29/2021, 4:11 AMbored-table-20691
09/29/2021, 4:13 AMbored-table-20691
09/29/2021, 4:13 AMbored-table-20691
09/29/2021, 4:14 AMrapid-soccer-18092
09/29/2021, 4:28 AMrapid-soccer-18092
09/29/2021, 4:29 AMbored-table-20691
09/29/2021, 4:33 AMbored-table-20691
09/29/2021, 4:33 AMrapid-soccer-18092
09/29/2021, 4:33 AMrapid-soccer-18092
09/29/2021, 6:18 AMvar datadogChecksum = new RandomPassword("datadog-checksum-password", new RandomPasswordArgs
{
Length = 32,
Special = true
});
var secret = new Secret("datadog-checksum-secret",
new SecretArgs
{
Metadata = new ObjectMetaArgs()
{
Name = "datadog-checksum-secret",
Namespace = "default"
},
StringData = datadogChecksum
.Result
.Apply(x => new Dictionary<string, string>() { { "token", x } })
},
new CustomResourceOptions
{
Provider = provider
});
// Datadog chart. <https://github.com/DataDog/helm-charts/tree/main/charts/datadog>
var datadogChart = new Chart("datadog-chart",
new ChartArgs
{
Chart = "datadog",
Version = args.DatadogChartVersion,
Namespace = "default",
Values = new Dictionary<string, object>
{
["datadog"] = new Dictionary<string, object>
{
["apiKey"] = args.DatadogApiKey,
["site"] = "<http://datadoghq.eu|datadoghq.eu>",
["logs"] = new Dictionary<string, object>
{
["enabled"] = true,
["containerCollectAll"] = true
},
["kubelet"] = new Dictionary<string, object>
{
["tlsVerify"] = false // See: <https://github.com/DataDog/integrations-core/issues/2582>
}
},
["clusterAgent"] = new Dictionary<string, object>
{
["tokenExistingSecret"] = "datadog-checksum-secret"
}
},
FetchOptions = new ChartFetchArgs
{
Repo = "<https://helm.datadoghq.com>"
}
},
new ComponentResourceOptions
{
Provider = provider,
DependsOn = { aks, datadogChecksum }
});
bored-table-20691
09/29/2021, 2:25 PM