|
| 1 | +# Postgresus Helm Chart |
| 2 | + |
| 3 | +## Installation |
| 4 | + |
| 5 | +```bash |
| 6 | +helm install postgresus ./deploy/postgresus -n postgresus --create-namespace |
| 7 | +``` |
| 8 | + |
| 9 | +## Configuration |
| 10 | + |
| 11 | +### Main Parameters |
| 12 | + |
| 13 | +| Parameter | Description | Default Value | |
| 14 | +| ------------------ | ------------------ | --------------------------- | |
| 15 | +| `namespace.create` | Create namespace | `true` | |
| 16 | +| `namespace.name` | Namespace name | `postgresus` | |
| 17 | +| `image.repository` | Docker image | `rostislavdugin/postgresus` | |
| 18 | +| `image.tag` | Image tag | `latest` | |
| 19 | +| `image.pullPolicy` | Image pull policy | `Always` | |
| 20 | +| `replicaCount` | Number of replicas | `1` | |
| 21 | + |
| 22 | +### Resources |
| 23 | + |
| 24 | +| Parameter | Description | Default Value | |
| 25 | +| --------------------------- | -------------- | ------------- | |
| 26 | +| `resources.requests.memory` | Memory request | `1Gi` | |
| 27 | +| `resources.requests.cpu` | CPU request | `500m` | |
| 28 | +| `resources.limits.memory` | Memory limit | `1Gi` | |
| 29 | +| `resources.limits.cpu` | CPU limit | `500m` | |
| 30 | + |
| 31 | +### Storage |
| 32 | + |
| 33 | +| Parameter | Description | Default Value | |
| 34 | +| ------------------------------ | ------------------------- | ---------------------- | |
| 35 | +| `persistence.enabled` | Enable persistent storage | `true` | |
| 36 | +| `persistence.storageClassName` | Storage class | `""` (cluster default) | |
| 37 | +| `persistence.accessMode` | Access mode | `ReadWriteOnce` | |
| 38 | +| `persistence.size` | Storage size | `10Gi` | |
| 39 | +| `persistence.mountPath` | Mount path | `/postgresus-data` | |
| 40 | + |
| 41 | +### Service |
| 42 | + |
| 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` | |
| 49 | + |
| 50 | +### Ingress |
| 51 | + |
| 52 | +| Parameter | Description | Default Value | |
| 53 | +| ----------------------- | ----------------- | ------------------------ | |
| 54 | +| `ingress.enabled` | Enable Ingress | `true` | |
| 55 | +| `ingress.className` | Ingress class | `nginx` | |
| 56 | +| `ingress.hosts[0].host` | Hostname | `postgresus.example.com` | |
| 57 | +| `ingress.tls` | TLS configuration | See values.yaml | |
| 58 | + |
| 59 | +### Health Checks |
| 60 | + |
| 61 | +| Parameter | Description | Default Value | |
| 62 | +| ------------------------ | ---------------------- | ------------- | |
| 63 | +| `livenessProbe.enabled` | Enable liveness probe | `true` | |
| 64 | +| `readinessProbe.enabled` | Enable readiness probe | `true` | |
| 65 | + |
| 66 | +## Custom Ingress Example |
| 67 | + |
| 68 | +```yaml |
| 69 | +# custom-values.yaml |
| 70 | +ingress: |
| 71 | + hosts: |
| 72 | + - host: backup.example.com |
| 73 | + paths: |
| 74 | + - path: / |
| 75 | + pathType: Prefix |
| 76 | + tls: |
| 77 | + - secretName: backup-example-com-tls |
| 78 | + hosts: |
| 79 | + - backup.example.com |
| 80 | +``` |
| 81 | +
|
| 82 | +```bash |
| 83 | +helm install postgresus ./deploy/postgresus -n postgresus --create-namespace -f custom-values.yaml |
| 84 | +``` |
0 commit comments