replaced deletion policy with param
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 14m5s
Deploy k8s Infra / Pulumi Deploy (pull_request) Has been skipped

This commit is contained in:
2026-06-20 03:14:46 +02:00
parent 8b913e921f
commit 3b1c2f4901
+2 -18
View File
@@ -122,7 +122,7 @@ new k8s.apiextensions.CustomResource(
// ── Longhorn ──────────────────────────────────────────────────────────────
const longhornRelease = new k8s.helm.v3.Release(
new k8s.helm.v3.Release(
"longhorn",
{
name: "longhorn",
@@ -134,29 +134,13 @@ const longhornRelease = new k8s.helm.v3.Release(
values: {
defaultSettings: {
defaultReplicaCount: 3,
podDeletionPolicyWhenNodeIsDown: "delete-pod-and-force-delete-pod",
},
},
},
opts(),
);
new k8s.apiextensions.CustomResource(
"longhorn-pod-deletion-policy",
{
apiVersion: "longhorn.io/v1beta2",
kind: "Setting",
metadata: {
name: "pod-deletion-policy-when-node-is-down",
namespace: "longhorn-system",
},
value: "delete-pod-and-force-delete-pod",
},
{
provider: k8sProvider,
dependsOn: [longhornRelease],
},
);
// ── kube-vip ────────────
const kubeVipNamespace = "kube-system";