-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitea-pg.yaml
53 lines (53 loc) · 1.04 KB
/
gitea-pg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: acid.zalan.do/v1
kind: postgresql
metadata:
name: gitea-gitea
namespace: gitea
spec:
databases:
giteadb: gitea
enableLogicalBackup: false
spiloRunAsGroup: 103
spiloRunAsUser: 101
spiloFSGroup: 103
numberOfInstances: 1
postgresql:
version: "10"
teamId: gitea
users:
gitea:
- superuser
- createdb
volume:
size: 5Gi
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 200m
memory: 500Mi
podAnnotations:
prometheus.io/port: "9187"
prometheus.io/scrape: "true"
sidecars:
- env:
- name: DATA_SOURCE_URI
value: localhost:5432/postgres?sslmode=disable
- name: DATA_SOURCE_USER
value: $(POSTGRES_USER)
- name: DATA_SOURCE_PASS
value: $(POSTGRES_PASSWORD)
image: quay.io/prometheuscommunity/postgres-exporter
name: exporter
ports:
- containerPort: 9187
name: exporter
protocol: TCP
resources:
limits:
cpu: 250m
memory: 256M
requests:
cpu: 100m
memory: 200M