added heimdall and longhorn deplyoment

This commit is contained in:
2026-06-06 00:38:01 +02:00
parent 37395e3a4d
commit b61759c3c0
7 changed files with 3078 additions and 4 deletions
+23 -4
View File
@@ -3,7 +3,6 @@ import * as k8s from "@pulumi/kubernetes";
const config = new pulumi.Config();
//fetch credentials from k8s-bootstrap
const infraRef = new pulumi.StackReference(
`${pulumi.getOrganization()}/k8s-bootstrap/dev`,
);
@@ -20,7 +19,7 @@ const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
...extras,
});
// ── 1. NFS CSI Driver ────────────────────────────────────────────────────────
// ── NFS CSI Driver ────────────────────────────────────────────────────────
const nfsCsiDriver = new k8s.helm.v3.Release(
"nfs-csi-driver",
@@ -57,7 +56,7 @@ new k8s.storage.v1.StorageClass(
opts({ dependsOn: [nfsCsiDriver] }),
);
// ── 2. cert-manager ──────────────────────────────────────────────────────────
// ── cert-manager ──────────────────────────────────────────────────────────
const certManager = new k8s.helm.v3.Release(
"cert-manager",
@@ -75,7 +74,7 @@ const certManager = new k8s.helm.v3.Release(
opts(),
);
// ── 3. Cloudflare token secret + ClusterIssuer ───────────────────────────────
// ── Cloudflare token secret + ClusterIssuer ───────────────────────────────
const cfSecret = new k8s.core.v1.Secret(
"cloudflare-token",
@@ -115,4 +114,24 @@ new k8s.apiextensions.CustomResource(
opts({ dependsOn: [certManager, cfSecret] }),
);
// ── Longhorn ──────────────────────────────────────────────────────────────
new k8s.helm.v3.Release(
"longhorn",
{
name: "longhorn",
chart: "longhorn",
repositoryOpts: { repo: "https://charts.longhorn.io" },
namespace: "longhorn-system",
createNamespace: true,
version: "1.12.0",
values: {
defaultSettings: {
defaultReplicaCount: 3,
},
},
},
opts(),
);
export const storageClass = "truenas-nfs";