From 008ef748c6a3c23d6b6c9b0457ea4e502784de6f Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Sun, 23 Nov 2025 01:04:17 +0500 Subject: [PATCH] fix: PipCache | must be singleton --- cache-infrastructure/pip/index.ts | 37 +------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/cache-infrastructure/pip/index.ts b/cache-infrastructure/pip/index.ts index 0191048..7f84ffc 100644 --- a/cache-infrastructure/pip/index.ts +++ b/cache-infrastructure/pip/index.ts @@ -34,7 +34,6 @@ export class PipCache extends Construct { namespace, name, size: "128Gi", - accessModes: ["ReadWriteMany"], }); new DeploymentV1(this, "deployment", { @@ -44,7 +43,7 @@ export class PipCache extends Construct { namespace, }, spec: { - replicas: "3", + replicas: "1", selector: { matchLabels: { app: name, @@ -60,40 +59,6 @@ export class PipCache extends Construct { nodeSelector: { nodepool: "worker", }, - topologySpreadConstraint: [ - { - maxSkew: 1, - topologyKey: "kubernetes.io/hostname", - whenUnsatisfiable: "ScheduleAnyway", - labelSelector: [ - { - matchLabels: { - app: name, - }, - }, - ], - }, - ], - affinity: { - podAntiAffinity: { - requiredDuringSchedulingIgnoredDuringExecution: [ - { - topologyKey: "kubernetes.io/hostname", - labelSelector: [ - { - matchExpressions: [ - { - key: "app", - operator: "In", - values: [name], - }, - ], - }, - ], - }, - ], - }, - }, volume: [ { name: "data",