- Add default resource requests (500Mi memory, 100m CPU) and limits (1Gi memory) to standard charts: - forgejoRunner, hugo, postgres, prometheusAgent, taskfileBuild, vshnPostgres, vuepress - Add higher resource requests (1Gi memory, 250m CPU) and limits (2Gi memory) to Odoo and Nextcloud charts - Update deployment templates to reference `.Values.resources` instead of hardcoded values - Replace hardcoded resource limits in forgejoRunner and vshnPostgres templates - Update documentation (README.md) for all affected charts - Update prometheusAgent default values to align with new standards - Include task execution log in prompts directory
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-postgres
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: postgres
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: postgres
|
|
spec:
|
|
containers:
|
|
- name: postgres
|
|
image: {{.Values.image }}
|
|
ports:
|
|
- containerPort: {{ .Values.port }}
|
|
env:
|
|
- name: POSTGRES_DB
|
|
value: {{ .Values.db }}
|
|
- name: POSTGRES_USER
|
|
value: {{ .Values.user }}
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.secretRef }}
|
|
key: {{ .Values.userPasswordKey }}
|
|
- name: PGDATABASE
|
|
value: {{ .Values.db }}
|
|
- name: PGUSER
|
|
value: {{ .Values.user }}
|
|
- name: PGPASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.secretRef }}
|
|
key: {{ .Values.userPasswordKey }}
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql/data/
|
|
name: postgres
|
|
subPath: pgdata
|
|
volumes:
|
|
- name: postgres
|
|
persistentVolumeClaim:
|
|
claimName: data-postgres
|