Split manifests into infra/ and applications/

This commit is contained in:
2026-06-21 12:14:38 +02:00
parent 64e8bf7d78
commit c40577589d
360 changed files with 69 additions and 67 deletions

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: resume
name: resume-postgresql-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-static
resources:
requests:
storage: 15Gi

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: resume-postgresql
namespace: resume
spec:
selector:
app: resume-postgresql
type: ClusterIP
ports:
- name: resume-postgresql-port
protocol: TCP
port: 5432
targetPort: 5432

View File

@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: resume
name: resume-postgresql
spec:
serviceName: resume-postgresql
replicas: 1
selector:
matchLabels:
app: resume-postgresql
template:
metadata:
labels:
app: resume-postgresql
spec:
terminationGracePeriodSeconds: 60
containers:
- name: resume-postgresql
image: postgres:18
ports:
- containerPort: 5432
resources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "250m"
memory: "256Mi"
volumeMounts:
- name: resume-postgresql-database
mountPath: /var/lib/postgresql
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: resume-secrets
key: db_password
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: resume-secrets
key: db_user
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: resume-secrets
key: db_name
volumes:
- name: resume-postgresql-database
persistentVolumeClaim:
claimName: resume-postgresql-pvc