diff --git a/deploy/helm/README.md b/deploy/helm/README.md index 4333340..fe9eb45 100644 --- a/deploy/helm/README.md +++ b/deploy/helm/README.md @@ -5,9 +5,12 @@ Install directly from the OCI registry (no need to clone the repository): ```bash -helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus -n postgresus --create-namespace +helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus \ + -n postgresus --create-namespace ``` +The `-n postgresus --create-namespace` flags control which namespace the chart is installed into. You can use any namespace name you prefer. + ## Accessing Postgresus By default, the chart creates a ClusterIP service. Use port-forward to access: @@ -24,8 +27,6 @@ Then open `http://localhost:4005` in your browser. | Parameter | Description | Default Value | | ------------------ | ------------------ | --------------------------- | -| `namespace.create` | Create namespace | `true` | -| `namespace.name` | Namespace name | `postgresus` | | `image.repository` | Docker image | `rostislavdugin/postgresus` | | `image.tag` | Image tag | `latest` | | `image.pullPolicy` | Image pull policy | `Always` | @@ -85,7 +86,9 @@ service: ``` ```bash -helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus -n postgresus --create-namespace -f nodeport-values.yaml +helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus \ + -n postgresus --create-namespace \ + -f nodeport-values.yaml ``` Access at `http://:30080` @@ -103,7 +106,9 @@ service: ``` ```bash -helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus -n postgresus --create-namespace -f loadbalancer-values.yaml +helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus \ + -n postgresus --create-namespace \ + -f loadbalancer-values.yaml ``` Get the external IP: @@ -138,7 +143,9 @@ ingress: ``` ```bash -helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus -n postgresus --create-namespace -f ingress-values.yaml +helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus \ + -n postgresus --create-namespace \ + -f ingress-values.yaml ``` ### Option 5: HTTPRoute (Gateway API) @@ -157,7 +164,9 @@ route: ``` ```bash -helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus -n postgresus --create-namespace -f httproute-values.yaml +helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus \ + -n postgresus --create-namespace \ + -f httproute-values.yaml ``` ## Ingress Configuration @@ -195,7 +204,9 @@ persistence: ``` ```bash -helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus -n postgresus --create-namespace -f storage-values.yaml +helm install postgresus oci://ghcr.io/rostislavdugin/charts/postgresus \ + -n postgresus --create-namespace \ + -f storage-values.yaml ``` ## Upgrade diff --git a/deploy/helm/templates/_helpers.tpl b/deploy/helm/templates/_helpers.tpl index 6502d49..109fcea 100644 --- a/deploy/helm/templates/_helpers.tpl +++ b/deploy/helm/templates/_helpers.tpl @@ -61,12 +61,8 @@ Create the name of the service account to use {{- end }} {{/* -Namespace +Namespace - uses the release namespace from helm install -n */}} {{- define "postgresus.namespace" -}} -{{- if .Values.namespace.create }} -{{- .Values.namespace.name }} -{{- else }} {{- .Release.Namespace }} {{- end }} -{{- end }} diff --git a/deploy/helm/templates/namespace.yaml b/deploy/helm/templates/namespace.yaml deleted file mode 100644 index 7377128..0000000 --- a/deploy/helm/templates/namespace.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{{- if .Values.namespace.create }} -apiVersion: v1 -kind: Namespace -metadata: - name: {{ .Values.namespace.name }} - labels: - {{- include "postgresus.labels" . | nindent 4 }} -{{- end }} diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index ab946d0..51073de 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -1,10 +1,5 @@ # Default values for postgresus -# Namespace configuration -namespace: - create: true - name: postgresus - # Image configuration image: repository: rostislavdugin/postgresus