Compare commits

...
Author SHA1 Message Date
kasun 99f5f58a08 enhancement(monitoring): deploy through the control-plane VIP
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 44s
Secret Scan / Betterleaks (pull_request) Successful in 6s
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:10:25 +01:00
claude-bot Bot c2bd27c9a7 Merge pull request 'Enhancement: Deploy k8s-apps through the control-plane VIP' (#59) from enhancement/k8s-apps-control-plane-vip into main
Deploy k8s Apps / Pulumi Deploy (push) Successful in 45s
Secret Scan / Betterleaks (push) Successful in 6s
Deploy k8s Apps / Pulumi Preview (push) Skipped
2026-11-23 02:06:38 +01:00
+7 -7
View File
@@ -18,13 +18,13 @@ const grafanaDbPassword = config.requireSecret("grafanaDbPassword");
const grafanaDbHost = config.requireSecret("grafanaDbHost"); const grafanaDbHost = config.requireSecret("grafanaDbHost");
const grafanaDbName = config.require("grafanaDbName"); const grafanaDbName = config.require("grafanaDbName");
// 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 monitoringNs = new k8s.core.v1.Namespace( const monitoringNs = new k8s.core.v1.Namespace(
"monitoring", "monitoring",