Skip to content

Commit

Permalink
Create deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LondheShubham153 authored Mar 10, 2024
1 parent b8e7b72 commit 60d8628
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions k8s/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-app-deployment
namespace: node-app
labels:
app: node-app
spec:
replicas: 2
selector:
matchLabels:
app: node-app
template:
metadata:
name: node-pod
namespace: node-app
labels:
app: node-app
spec:
containers:
- name: node-container
image: trainwithshubham/node-app-batch-6
ports:
- containerPort: 8000
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"

0 comments on commit 60d8628

Please sign in to comment.