Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Added Kubernetes support
Browse files Browse the repository at this point in the history
  • Loading branch information
irgalamarr committed Dec 17, 2023
1 parent 26c8412 commit 79b2198
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
42 changes: 42 additions & 0 deletions deploy/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: accounts
name: accounts
spec:
replicas: 3
selector:
matchLabels:
app: accounts
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: accounts
spec:
containers:
- image: us.icr.io/sn-labs-irgalamarr/accounts:1
name: accounts
resources: {}
env:
- name: DATABASE_HOST
value: postgresql
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
name: postgresql
key: database-name
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgresql
key: database-password
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: postgresql
key: database-user
status: {}
17 changes: 17 additions & 0 deletions deploy/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: accounts
name: accounts
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: accounts
type: ClusterIP
status:
loadBalancer: {}

0 comments on commit 79b2198

Please sign in to comment.