Skip to content

Commit 93ea5e8

Browse files
MVP
1 parent 23d863b commit 93ea5e8

4 files changed

Lines changed: 77 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: wishlists
5+
namespace: wishlists
6+
spec:
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: wishlists
11+
template:
12+
metadata:
13+
labels:
14+
app: wishlists
15+
spec:
16+
containers:
17+
- name: wishlists
18+
image: ghcr.io/unmango/wishlists:sha-1545470
19+
ports:
20+
- containerPort: 8080
21+
env: []
22+
resources:
23+
requests:
24+
memory: "128Mi"
25+
cpu: "100m"
26+
limits:
27+
memory: "256Mi"
28+
cpu: "500m"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: helm.toolkit.fluxcd.io/v2
2+
kind: HelmRelease
3+
metadata:
4+
name: cloudnative-pg
5+
namespace: wishlists
6+
spec:
7+
interval: 10m
8+
releaseName: postgres
9+
targetNamespace: wishlists
10+
chart:
11+
spec:
12+
chart: cluster
13+
version: 0.3.1
14+
sourceRef:
15+
kind: HelmRepository
16+
name: cloudnative-pg
17+
# https://github.com/cloudnative-pg/charts/blob/main/charts/cloudnative-pg/values.yaml
18+
values:
19+
type: postgresql
20+
mode: standalone
21+
cluster:
22+
instances: 1
23+
imageName: ghcr.io/cloudnative-pg/postgresql:18
24+
storage:
25+
size: 8Gi # default
26+
storageClass: ssd-rbd
27+
resources:
28+
requests:
29+
cpu: 2000m
30+
memory: 8Gi
31+
limits:
32+
cpu: 2000m
33+
memory: 8Gi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: wishlists
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: wishlists
5+
namespace: wishlists
6+
spec:
7+
selector:
8+
app: wishlists
9+
ports:
10+
- protocol: TCP
11+
port: 80
12+
targetPort: 8080

0 commit comments

Comments
 (0)