diff --git a/k8s/deployment-nodejs.yaml b/k8s/deployment-nodejs.yaml index 26e7b84..f9f5a94 100644 --- a/k8s/deployment-nodejs.yaml +++ b/k8s/deployment-nodejs.yaml @@ -6,7 +6,6 @@ metadata: type: Opaque stringData: WOOCOMMERCE_URL: "https://manoonoils.com" - # You'll need to update these with actual credentials WOOCOMMERCE_CONSUMER_KEY: "PLACEHOLDER_KEY" WOOCOMMERCE_CONSUMER_SECRET: "PLACEHOLDER_SECRET" --- @@ -34,19 +33,19 @@ spec: - | set -e apk add --no-cache git - - # Clone from Gitea (HTTP on port 3000) git clone --depth 1 --branch master \ http://gitea.gitea.svc.cluster.local:3000/unchained/manoon-headless.git \ /workspace - - echo "Clone complete. Files:" - ls -la /workspace + echo "Clone complete." volumeMounts: - name: workspace mountPath: /workspace securityContext: runAsUser: 0 + resources: + limits: + cpu: 500m + memory: 256Mi - name: install image: node:20-slim workingDir: /workspace @@ -56,7 +55,7 @@ spec: - | set -e echo "Installing dependencies..." - npm ci --prefer-offline --no-audit --silent + npm ci --prefer-offline --no-audit 2>&1 echo "Dependencies installed." volumeMounts: - name: workspace @@ -66,7 +65,10 @@ spec: resources: limits: cpu: 2000m - memory: 2Gi + memory: 3Gi + requests: + cpu: 100m + memory: 1Gi - name: build image: node:20-slim workingDir: /workspace @@ -105,10 +107,10 @@ spec: runAsUser: 0 resources: limits: - cpu: 1000m - memory: 1500Mi + cpu: 2000m + memory: 2Gi requests: - cpu: 250m + cpu: 100m memory: 512Mi containers: - name: storefront @@ -145,11 +147,11 @@ spec: value: "https://dev.manoonoils.com" resources: limits: - cpu: 1000m - memory: 1Gi + cpu: 500m + memory: 512Mi requests: - cpu: 250m - memory: 256Mi + cpu: 50m + memory: 128Mi volumeMounts: - name: workspace mountPath: /workspace