general fixes
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user