diff --git a/charts/penpot/Chart.yaml b/charts/penpot/Chart.yaml index 9052224..69ac36e 100644 --- a/charts/penpot/Chart.yaml +++ b/charts/penpot/Chart.yaml @@ -47,6 +47,11 @@ annotations: description: Bump Penpot images to 2.3.3. - kind: changed description: Change penpot-frontend service port to 8080. + - kind: added + description: config.internalResolver sets PENPOT_INTERNAL_RESOLVER to the frontend deployment. + links: + - name: Github Issue #12 + url: https://github.com/penpot/penpot-helm/issues/12 dependencies: - name: postgresql version: 15.x.x # appVersion >= 16.2.0 diff --git a/charts/penpot/README.md b/charts/penpot/README.md index 55a4565..905d9d6 100644 --- a/charts/penpot/README.md +++ b/charts/penpot/README.md @@ -73,6 +73,7 @@ helm install my-release -f values.yaml penpot/penpot | config.assets.s3.secretKeys.secretAccessKey | string | `""` | The S3 secret access key to use from an existing secret. | | config.assets.storageBackend | string | `"assets-fs"` | The storage backend for assets to use. Use `assets-fs` for filesystem, and `assets-s3` for S3. | | config.flags | string | `"enable-registration enable-login-with-password disable-email-verification enable-smtp"` | The feature flags to enable. Check [the official docs](https://help.penpot.app/technical-guide/configuration/) for more info. | +| config.internalResolver | string | `""` | Add custom resolver for frontend. e.g. 192.168.1.1 | | config.postgresql.database | string | `"penpot"` | The PostgreSQL database to use. | | config.postgresql.existingSecret | string | `""` | The name of an existing secret. | | config.postgresql.host | string | `""` | The PostgreSQL host to connect to. Empty to use dependencies. | diff --git a/charts/penpot/templates/frontend-deployment.yml b/charts/penpot/templates/frontend-deployment.yml index 34bccdc..09e1d9a 100644 --- a/charts/penpot/templates/frontend-deployment.yml +++ b/charts/penpot/templates/frontend-deployment.yml @@ -53,6 +53,14 @@ spec: value: {{ print "http://" (include "penpot.fullname" .) "-backend:" .Values.backend.service.port }} - name: PENPOT_EXPORTER_URI value: {{ print "http://" (include "penpot.fullname" .) "-exporter:" .Values.exporter.service.port }} + - name: PENPOT_INTERNAL_RESOLVER + {{- if not .Values.config.internalResolver }} + valueFrom: + fieldRef: + fieldPath: status.podIP + {{- else }} + value: {{ .Values.config.internalResolver | quote }} + {{- end }} volumeMounts: - mountPath: /opt/data/assets name: app-data diff --git a/charts/penpot/values.yaml b/charts/penpot/values.yaml index 7fdc4b6..133fe85 100644 --- a/charts/penpot/values.yaml +++ b/charts/penpot/values.yaml @@ -49,6 +49,9 @@ config: # -- Whether to enable sending of anonymous telemetry data. # @section -- Configuration parameters telemetryEnabled: true + # -- Add custom resolver for frontend. e.g. 192.168.1.1 + # @section -- Configuration parameters + internalResolver: "" postgresql: # -- The PostgreSQL host to connect to. Empty to use dependencies.