Flat CR narrowed to recursive: false; it still serves the SMB mount credentials and the Actions runner token, which the runner Helm chart reads via existingSecret.
40 lines
999 B
YAML
40 lines
999 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
namespace: gitea
|
|
name: gitea-postgresql
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: gitea-postgresql
|
|
serviceName: gitea-postgresql
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gitea-postgresql
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 60
|
|
containers:
|
|
- name: gitea-postgresql
|
|
image: postgres:18
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
ports:
|
|
- containerPort: 5432
|
|
volumeMounts:
|
|
- name: gitea-postgresql-database
|
|
mountPath: /var/lib/postgresql/volumes/pgdata
|
|
envFrom:
|
|
- secretRef:
|
|
name: gitea-postgres-secrets
|
|
volumes:
|
|
- name: gitea-postgresql-database
|
|
persistentVolumeClaim:
|
|
claimName: gitea-postgresql-pvc |