Enhancement: Deploy monitoring through the control-plane VIP #60
@@ -18,13 +18,13 @@ const grafanaDbPassword = config.requireSecret("grafanaDbPassword");
|
||||
const grafanaDbHost = config.requireSecret("grafanaDbHost");
|
||||
const grafanaDbName = config.require("grafanaDbName");
|
||||
|
||||
// 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 monitoringNs = new k8s.core.v1.Namespace(
|
||||
"monitoring",
|
||||
|
||||
Reference in new issue
Block a user