Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions deployments/api-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-deployment
labels:
app: api-deployment
spec:
selector:
matchLabels:
app: api-app
replicas: 1
template:
metadata:
labels:
app: api-app
spec:
containers:
- name: api
image: n3m6/api:latest
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
memory: 500Mi
env:
- name: SERVICE_API_PORT
valueFrom:
secretKeyRef:
name: deploy-config
key: SERVICE_API_PORT
- name: SERVICE_API_JWT_SECRET_KEY
valueFrom:
secretKeyRef:
name: deploy-config
key: SERVICE_API_JWT_SECRET_KEY
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: api-service
labels:
app: api-service
spec:
selector:
app: api-app
type: LoadBalancer
ipFamilies:
- IPv4
ports:
- protocol: TCP
port: 80
targetPort: 3000
44 changes: 44 additions & 0 deletions deployments/web-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-deployment
labels:
app: web-deployment
spec:
selector:
matchLabels:
app: web-app
replicas: 1
template:
metadata:
labels:
app: web-app
spec:
containers:
- name: web
image: n3m6/web:latest
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
memory: 500Mi
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: web-service
labels:
app: web-service
spec:
selector:
app: web-app
type: LoadBalancer
ipFamilies:
- IPv4
ports:
- protocol: TCP
port: 80
targetPort: 80