Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99f5f58a08 | ||
|
|
c2bd27c9a7 | ||
|
|
b21d5fc268 | ||
|
|
3d5b2ba097 |
No files matched your search
@@ -10,13 +10,13 @@ const bootstrapRef = new pulumi.StackReference(
|
|||||||
const kubeconfig = bootstrapRef.requireOutput("kubeconfig");
|
const kubeconfig = bootstrapRef.requireOutput("kubeconfig");
|
||||||
export const domain = config.requireSecret("domain");
|
export const domain = config.requireSecret("domain");
|
||||||
|
|
||||||
// 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,
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user