general fixes

This commit is contained in:
gulimabr
2026-01-18 22:06:02 -03:00
parent 9f8315120b
commit 3be3c22be9
12 changed files with 87 additions and 178 deletions

View File

@@ -9,7 +9,7 @@ metadata:
name: fastapi-app
namespace: requirements-periodic-table
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: fastapi-app
@@ -18,20 +18,20 @@ spec:
labels:
app: fastapi-app
spec:
imagePullSecrets:
- name: regcred
containers:
- name: fastapi-app
image: docker.io/your-dockerhub-username/periodic-table-backend:latest
imagePullPolicy: IfNotPresent
image: docker.io/gulimabr/requirements-periodic-table-backend:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: DATABASE_HOST
value: postgresql
envFrom:
- secretRef:
name: periodic-table-env # Provide secrets for APP settings
- configMapRef:
name: periodic-table-env # Provide config for APP settings
env:
- name: PROXY_HEADERS
value: "true"
- name: TRUSTED_PROXY_HOSTS
value: "*"
---
apiVersion: v1
kind: Service
@@ -53,7 +53,7 @@ metadata:
name: frontend
namespace: requirements-periodic-table
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: frontend
@@ -62,12 +62,10 @@ spec:
labels:
app: frontend
spec:
imagePullSecrets:
- name: regcred
containers:
- name: frontend
image: docker.io/your-dockerhub-username/periodic-table-frontend:latest
imagePullPolicy: IfNotPresent
image: docker.io/gulimabr/requirements-periodic-table-frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 80
---