Skip to content

Commit

Permalink
added drage
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrumilpatel committed Jan 13, 2022
1 parent 69b1afe commit fa33f8a
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
43 changes: 43 additions & 0 deletions drage/drage-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: drage
namespace: staging
spec:
replicas: 1
selector:
matchLabels:
app: drage
template:
metadata:
labels:
app: drage
spec:
containers:
- name: drage
image: 424432388155.dkr.ecr.us-east-1.amazonaws.com/drage:v0.1.5
ports:
- name: http
containerPort: 5000
env:
- name: MONGODB_HOSTNAME
value: mongodb-0.mongodb-headless.database
- name: MONGODB_PORT
value: "27017"
- name: MONGODB_DATABASE
value: inventory
- name: MONGODB_USERNAME
value: drage
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: creds
key: db-password
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
5 changes: 5 additions & 0 deletions drage/drage-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: staging
9 changes: 9 additions & 0 deletions drage/drage-secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: Secret
metadata:
name: creds
namespace: staging
type: Opaque
data:
db-password: c2VjcmV0cGFzc3dvcmQxMjM=
14 changes: 14 additions & 0 deletions drage/drage-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: drage
namespace: staging
spec:
type: ClusterIP
ports:
- name: api
port: 4000
targetPort: http
selector:
app: drage

0 comments on commit fa33f8a

Please sign in to comment.