Skip to content

Commit

Permalink
feat: change kubernetes secret
Browse files Browse the repository at this point in the history
  • Loading branch information
sayinmehmet47 committed Mar 11, 2024
1 parent ba884f2 commit c82eb45
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions infra/k8s/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: Service
metadata:
name: backend-service
namespace: kitapkurdu
spec:
spec:
selector:
app: kitapkurdu
tier: backend
app: kitapkurdu
tier: backend
ports:
- protocol: TCP
port: 80
targetPort: 5000
targetPort: 5000
---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -22,32 +22,35 @@ spec:
selector:
matchLabels:
app: kitapkurdu
tier: backend
tier: backend
template:
metadata:
labels:
app: kitapkurdu
tier: backend
tier: backend
spec:
containers:
- name: kitapkurdu
image: sayinmehmet47/backend-kitapkurdu-1:latest
env:
- name: MONGO_URI
value: ${{ secrets.MONGO_URI_VALUE }}
# - name: JWT_SECRET
# value: ${{ secrets.JWT_SECRET }}
# value: ${{ secrets.MONGO_URI_VALUE }}
valueFrom:
secretKeyRef:
name: mongo-uri
key: MONGO_URI
- name: JWT_SECRET
value: "fsafdafdasfdk"
value: 'fsafdafdasfdk'
- name: PORT
value: '5000'
ports:
- containerPort: 5000
resources:
requests:
cpu: "100m"
memory: "700Mi"
cpu: '100m'
memory: '700Mi'
limits:
cpu: "500m"
memory: "1024Mi"
---
cpu: '500m'
memory: '1024Mi'
---

0 comments on commit c82eb45

Please sign in to comment.