fix: Backups | add cloudflare token to longhorn-system

This commit is contained in:
2026-04-21 14:12:58 +05:00
parent 6662de45f9
commit a15508bf14

View File

@@ -8,7 +8,7 @@ import { GiteaRunner, GiteaServer } from "./gitea";
import { AuthentikServer } from "./authentik";
import { PostgresCluster } from "./postgres";
import { DynamicDNS } from "./dynamic-dns";
import { PublicIngressRoute } from "../utils";
import { OnePasswordSecret, PublicIngressRoute } from "../utils";
export class UtilityServices extends TerraformStack {
constructor(scope: Construct, id: string) {
@@ -77,6 +77,13 @@ export class UtilityServices extends TerraformStack {
],
});
new OnePasswordSecret(this, "backups-secret", {
namespace: "longhorn-system",
provider: kubernetes,
name: "cloudflare-token",
itemPath: "vaults/Lab/items/cloudflare",
});
const postgres = new PostgresCluster(this, "postgres-cluster", {
certManagerApiVersion: "cert-manager.io/v1",
name: "postgres-cluster",