Merge pull request 'Enhancement: Deploy k8s-infra through the control-plane VIP' (#61) from enhancement/k8s-infra-control-plane-vip into main
This commit was merged in pull request #61.
This commit is contained in:
commit
17648b53ae
1 file changed
+7
-7
@@ -23,13 +23,13 @@ const domain = config.requireSecret("domain");
|
||||
const longhornUiUser = config.requireSecret("longhornUiUser");
|
||||
const longhornUiPassword = config.requireSecret("longhornUiPassword");
|
||||
|
||||
// Keep the kubeconfig stored in state. A changed API address would otherwise
|
||||
// make Pulumi replace the provider and every resource in this stack.
|
||||
const k8sProvider = new k8s.Provider(
|
||||
"k3s",
|
||||
{ kubeconfig },
|
||||
{ ignoreChanges: ["kubeconfig"] },
|
||||
);
|
||||
// A fixed identifier makes kubeconfig changes (e.g. a new API address) provider
|
||||
// updates. Without it, they replace the provider and every resource in this
|
||||
// stack. Changing this value triggers that replacement, so never change it.
|
||||
const k8sProvider = new k8s.Provider("k3s", {
|
||||
kubeconfig,
|
||||
clusterIdentifier: "homelab-k3s",
|
||||
});
|
||||
const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
|
||||
provider: k8sProvider,
|
||||
...extras,
|
||||
|
||||
Reference in new issue
Block a user