minikube working

This commit is contained in:
tusuii
2026-02-24 22:06:14 +05:30
parent c9c7402606
commit c744d87016
27 changed files with 839 additions and 390 deletions

View File

@@ -0,0 +1,36 @@
# On-premise backend patches
# Adjust replicas, resource limits, and expose via NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ecommerce-app
namespace: ecommerce
spec:
replicas: 2
template:
spec:
containers:
- name: ecommerce-app
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: "2"
memory: 2Gi
---
# Expose the backend as a NodePort for on-premise access
apiVersion: v1
kind: Service
metadata:
name: ecommerce-app
namespace: ecommerce
spec:
type: NodePort
ports:
- port: 80
targetPort: 3000
nodePort: 30080
protocol: TCP
name: http