fast-dinner-32080
03/31/2020, 7:03 PMvar rancherHelmRelease = new Pulumi.Kubernetes.Helm.V3.Chart("rancher",
new ChartArgs
{
Repo = "rancher-latest",
Chart = "rancher",
Version = config.Require("rancherVersion"),
Namespace = cattleSystemNamespace.Metadata.Apply(x => x.Name),
Values =
{
{"ingress.tls.source", "external"},
{"tls", "external"},
{"hostname", config.Require("rancherHost")},
{"debug", config.RequireBoolean("rancherEnableDebug")},
{"replicas", 3}
}
},
new ComponentResourceOptions
{
Provider = kubernetesProvider,
DependsOn =
{
rkeCluster,
cattleSystemNamespace
}
});
var rancherBootstrapProvider = new Pulumi.Rancher2.Provider("rancherBootstrapProvider",
new Pulumi.Rancher2.ProviderArgs
{
ApiUrl = $"https://{config.Require("rancherHost")}",
Bootstrap = true
});
// Initially setup server the first time creating admin account
var rancherBootstrap = new Pulumi.Rancher2.Bootstrap("rancherBootstrap",
new BootstrapArgs
{
Password = commonEnvSecret.Data.Apply(x => (string)x["rancher_server_admin_password"]),
Telemetry = false
},
new CustomResourceOptions
{
Provider = rancherBootstrapProvider,
DependsOn =
{
rancherHelmRelease
}
});
tall-librarian-49374
03/31/2020, 7:45 PMfast-dinner-32080
03/31/2020, 7:46 PMtall-librarian-49374
03/31/2020, 7:47 PMfast-dinner-32080
03/31/2020, 7:48 PM