Compare commits

...
Author SHA1 Message Date
kasun 46b6593682 enhancement(k8s-infra): deploy through the control-plane VIP
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 46s
Secret Scan / Betterleaks (pull_request) Successful in 5s
Deploys depended on master-1 being up. A fixed clusterIdentifier lets the provider move to the VIP as an update, because Pulumi otherwise treats a new API address as a different cluster and replaces every resource. The identifier was added to the stack state first so this change does not itself trigger a replacement.
2026-11-23 02:21:26 +01:00
claude-bot Bot 52e780f4af Merge pull request 'Enhancement: Deploy monitoring through the control-plane VIP' (#60) from enhancement/monitoring-control-plane-vip into main
Deploy Monitoring / Pulumi Preview (push) Skipped
Deploy Monitoring / Pulumi Deploy (push) Successful in 45s
Secret Scan / Betterleaks (push) Successful in 7s
2026-11-23 02:12:37 +01:00
+7 -7
View File
@@ -23,13 +23,13 @@ const domain = config.requireSecret("domain");
const longhornUiUser = config.requireSecret("longhornUiUser"); const longhornUiUser = config.requireSecret("longhornUiUser");
const longhornUiPassword = config.requireSecret("longhornUiPassword"); const longhornUiPassword = config.requireSecret("longhornUiPassword");
// Keep the kubeconfig stored in state. A changed API address would otherwise // A fixed identifier makes kubeconfig changes (e.g. a new API address) provider
// make Pulumi replace the provider and every resource in this stack. // updates. Without it, they replace the provider and every resource in this
const k8sProvider = new k8s.Provider( // stack. Changing this value triggers that replacement, so never change it.
"k3s", const k8sProvider = new k8s.Provider("k3s", {
{ kubeconfig }, kubeconfig,
{ ignoreChanges: ["kubeconfig"] }, clusterIdentifier: "homelab-k3s",
); });
const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({ const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
provider: k8sProvider, provider: k8sProvider,
...extras, ...extras,