This commit is contained in:
Petrraa
2026-05-25 23:27:16 +02:00
parent 3106978fa0
commit 99b9c56615
7 changed files with 17 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
spec:
replicas: 1
replicas: 3
selector:
matchLabels:
app: fastapi-api
@@ -17,7 +17,14 @@ spec:
spec:
containers:
- name: fastapi-api
image: petrraa/fastapi-todo-api:1.0
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
resources:
requests:
cpu: "10m"
memory: "64Mi"
limits:
cpu: "50m"
memory: "128Mi"
ports:
- containerPort: 8000
env:
@@ -46,14 +53,9 @@ spec:
secretKeyRef:
name: postgres-secret
key: POSTGRES_DB
- name: MAX_TODOS
valueFrom:
configMapKeyRef:
name: fastapi-config
key: MAX_TODOS
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 15
periodSeconds: 5
periodSeconds: 5

View File

@@ -8,7 +8,7 @@ metadata:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: petrraa.fpmoz.sum.ba # zamijenite!
- host: petrraa.fpmoz.sum.ba
http:
paths:
- path: /
@@ -21,4 +21,4 @@ spec:
tls:
- hosts:
- petrraa.fpmoz.sum.ba
secretName: fastapi-api-tls
secretName: fastapi-api-tls

View File

@@ -9,4 +9,4 @@ spec:
ports:
- port: 80
targetPort: 8000
type: NodePort
type: ClusterIP