<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a Helm-based deployment package that streamlines setup for the backend application and PostgreSQL database on Kubernetes. - Added orchestration support via Docker Compose for managing multi-container deployments. - Added new Kubernetes resources including Deployments, Services, and PersistentVolumeClaims for both the backend and PostgreSQL. - **Documentation** - Provided comprehensive infrastructure and deployment instructions for Kubernetes environments. - **Chores** - Established a standardized container build process for the Python application. - Introduced configuration settings for service ports, resource limits, and environment variables. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Daniel Molnar <soobrosa@gmail.com> Co-authored-by: Boris <boris@topoteretes.com>
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-postgres
|
|
labels:
|
|
app: {{ .Release.Name }}-postgres
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}-postgres
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}-postgres
|
|
spec:
|
|
containers:
|
|
- name: postgres
|
|
image: {{ .Values.postgres.image }}
|
|
ports:
|
|
- containerPort: {{ .Values.postgres.port }}
|
|
env:
|
|
- name: POSTGRES_USER
|
|
value: {{ .Values.postgres.env.POSTGRES_USER }}
|
|
- name: POSTGRES_PASSWORD
|
|
value: {{ .Values.postgres.env.POSTGRES_PASSWORD }}
|
|
- name: POSTGRES_DB
|
|
value: {{ .Values.postgres.env.POSTGRES_DB }}
|
|
volumeMounts:
|
|
- name: postgres-storage
|
|
mountPath: /var/lib/postgresql/data
|
|
volumes:
|
|
- name: postgres-storage
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Release.Name }}-postgres-pvc
|