.
This commit is contained in:
@@ -6,7 +6,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
|
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: fastapi-api
|
app: fastapi-api
|
||||||
@@ -17,7 +17,14 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: fastapi-api
|
- 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:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
env:
|
env:
|
||||||
@@ -46,11 +53,6 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
key: POSTGRES_DB
|
key: POSTGRES_DB
|
||||||
- name: MAX_TODOS
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: fastapi-config
|
|
||||||
key: MAX_TODOS
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: petrraa.fpmoz.sum.ba # zamijenite!
|
- host: petrraa.fpmoz.sum.ba
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
@@ -33,4 +33,3 @@ spec:
|
|||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: postgres-pvc # disk koji smo rezervirali
|
claimName: postgres-pvc # disk koji smo rezervirali
|
||||||
|
|
||||||
@@ -9,4 +9,4 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 5432
|
- port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
type: NodePort # dostupno samo unutar clustera
|
type: ClusterIP # dostupno samo unutar clustera
|
||||||
|
|||||||
Reference in New Issue
Block a user