Skip to content

Commit f9e2607

Browse files
authored
Merge pull request #1111 from lsst-it/IT-6436_nexus_pg_instance
(fleet/nexus-pg) add nexus pg instance dev
2 parents 9991e1c + 9071616 commit f9e2607

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

fleet/lib/nexus-pg/fleet.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,14 @@ targetCustomizations:
2727
overlays:
2828
- generic
2929
- yepun
30+
- name: ruka
31+
clusterSelector:
32+
matchExpressions:
33+
- key: management.cattle.io/cluster-display-name
34+
operator: In
35+
values:
36+
- ruka
37+
yaml:
38+
overlays:
39+
- generic
40+
- ruka
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
apiVersion: postgresql.cnpg.io/v1
3+
kind: Cluster
4+
metadata:
5+
name: nexus-pg
6+
spec:
7+
imageName: ghcr.io/cloudnative-pg/postgresql:15
8+
9+
instances: 1
10+
11+
postgresql:
12+
parameters:
13+
max_connections: "50"
14+
shared_buffers: 256MB
15+
idle_session_timeout: 4h
16+
pg_hba:
17+
- host all all 139.229.134.0/23 md5
18+
- host all all 139.229.136.0/21 md5
19+
- host all all 139.229.144.0/20 md5
20+
- host all all 139.229.160.0/19 md5
21+
- host all all 139.229.192.0/18 md5
22+
- host all all 140.252.146.0/23 md5
23+
24+
enableSuperuserAccess: true
25+
superuserSecret:
26+
name: nexus-pg-superuser
27+
28+
storage:
29+
size: 5Gi
30+
31+
monitoring:
32+
enablePodMonitor: true
33+
34+
resources:
35+
limits:
36+
cpu: "1"
37+
memory: 1Gi
38+
requests:
39+
cpu: 500m
40+
memory: 1Gi
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: nexus-pg
6+
labels:
7+
cnpg.io/cluster: nexus-pg
8+
annotations:
9+
metallb.universe.tf/loadBalancerIPs: 139.229.134.192
10+
spec:
11+
ports:
12+
- name: postgres
13+
port: 5432
14+
protocol: TCP
15+
selector:
16+
cnpg.io/cluster: nexus-pg
17+
role: primary
18+
type: LoadBalancer

fleet/s/dev/c/ruka/nexus-pg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../lib/nexus-pg

0 commit comments

Comments
 (0)