66helm install postgresus ./deploy/postgresus -n postgresus --create-namespace
77```
88
9+ After installation, get the external IP:
10+
11+ ``` bash
12+ kubectl get svc -n postgresus
13+ ```
14+
15+ Access Postgresus at ` http://<EXTERNAL-IP> ` (port 80).
16+
917## Configuration
1018
1119### Main Parameters
@@ -40,21 +48,23 @@ helm install postgresus ./deploy/postgresus -n postgresus --create-namespace
4048
4149### Service
4250
43- | Parameter | Description | Default Value |
44- | -------------------------- | ----------------------- | ------------- |
45- | ` service.type ` | Service type | ` ClusterIP ` |
46- | ` service.port ` | Service port | ` 4005 ` |
47- | ` service.targetPort ` | Target port | ` 4005 ` |
48- | ` service.headless.enabled ` | Enable headless service | ` true ` |
51+ | Parameter | Description | Default Value |
52+ | -------------------------- | ----------------------- | -------------- |
53+ | ` service.type ` | Service type | ` LoadBalancer ` |
54+ | ` service.port ` | External port | ` 80 ` |
55+ | ` service.targetPort ` | Container port | ` 4005 ` |
56+ | ` service.headless.enabled ` | Enable headless service | ` true ` |
57+
58+ ### Ingress (Optional)
4959
50- ### Ingress
60+ Ingress is disabled by default. The chart uses LoadBalancer service for direct IP access.
5161
5262| Parameter | Description | Default Value |
5363| ----------------------- | ----------------- | ------------------------ |
54- | ` ingress.enabled ` | Enable Ingress | ` true ` |
64+ | ` ingress.enabled ` | Enable Ingress | ` false ` |
5565| ` ingress.className ` | Ingress class | ` nginx ` |
5666| ` ingress.hosts[0].host ` | Hostname | ` postgresus.example.com ` |
57- | ` ingress.tls ` | TLS configuration | See values.yaml |
67+ | ` ingress.tls ` | TLS configuration | ` [] ` |
5868
5969### Health Checks
6070
@@ -63,11 +73,54 @@ helm install postgresus ./deploy/postgresus -n postgresus --create-namespace
6373| ` livenessProbe.enabled ` | Enable liveness probe | ` true ` |
6474| ` readinessProbe.enabled ` | Enable readiness probe | ` true ` |
6575
66- ## Custom Ingress Example
76+ ## Examples
77+
78+ ### Basic Installation (LoadBalancer on port 80)
79+
80+ Default installation exposes Postgresus via LoadBalancer on port 80:
81+
82+ ``` bash
83+ helm install postgresus ./deploy/postgresus -n postgresus --create-namespace
84+ ```
85+
86+ Access via ` http://<EXTERNAL-IP> `
87+
88+ ### Using NodePort
89+
90+ If your cluster doesn't support LoadBalancer:
91+
92+ ``` yaml
93+ # nodeport-values.yaml
94+ service :
95+ type : NodePort
96+ port : 80
97+ targetPort : 4005
98+ nodePort : 30080
99+ ` ` `
100+
101+ ` ` ` bash
102+ helm install postgresus ./deploy/postgresus -n postgresus --create-namespace -f nodeport-values.yaml
103+ ```
104+
105+ Access via ` http://<NODE-IP>:30080 `
106+
107+ ### Enable Ingress with HTTPS
108+
109+ For domain-based access with TLS:
67110
68111``` yaml
69- # custom-values.yaml
112+ # ingress-values.yaml
113+ service :
114+ type : ClusterIP
115+ port : 4005
116+ targetPort : 4005
117+
70118ingress :
119+ enabled : true
120+ className : nginx
121+ annotations :
122+ nginx.ingress.kubernetes.io/ssl-redirect : " true"
123+ cert-manager.io/cluster-issuer : " letsencrypt-prod"
71124 hosts :
72125 - host : backup.example.com
73126 paths :
@@ -80,5 +133,18 @@ ingress:
80133` ` `
81134
82135` ` ` bash
83- helm install postgresus ./deploy/postgresus -n postgresus --create-namespace -f custom-values.yaml
136+ helm install postgresus ./deploy/postgresus -n postgresus --create-namespace -f ingress-values.yaml
137+ ```
138+
139+ ### Custom Storage Size
140+
141+ ``` yaml
142+ # storage-values.yaml
143+ persistence :
144+ size : 50Gi
145+ storageClassName : " fast-ssd"
146+ ` ` `
147+
148+ ` ` ` bash
149+ helm install postgresus ./deploy/postgresus -n postgresus --create-namespace -f storage-values.yaml
84150```
0 commit comments