.
This commit is contained in:
20
argocd-app.yaml
Normal file
20
argocd-app.yaml
Normal 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
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user