This commit is contained in:
ITO Mac
2026-05-19 11:21:18 +02:00
parent 0ae35c9de3
commit 0fc9bfc475
3 changed files with 34 additions and 0 deletions

20
argocd-app.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: blazp04-pg-app
namespace: argocd
spec:
project: default
source:
repoURL: https://git.fpmoz.sum.ba/Blazp04/fastapi-postgres-gitops.git
targetRevision: HEAD
path: manifests
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: student-blazp04
syncPolicy:
syncOptions:
- PruneLast=true
- CreateNamespace=false

View File

@@ -18,6 +18,13 @@ spec:
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
ports:
- containerPort: 8000
resources:
requests:
cpu: 1m
memory: 64Mi
limits:
cpu: 200m
memory: 256Mi
env:
- name: POSTGRES_HOST
valueFrom:

View File

@@ -18,6 +18,13 @@ spec:
image: postgres:16-alpine
ports:
- containerPort: 5432
resources:
requests:
cpu: 1m
memory: 64Mi
limits:
cpu: 300m
memory: 512Mi
env:
- name: POSTGRES_DB
valueFrom: