0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2024-12-21 21:23:04 -05:00

feat: delete repl service

This commit is contained in:
David Barragán Merino 2024-07-09 18:08:53 +02:00
parent 5097f3df7f
commit fc5ee21ebc
5 changed files with 13 additions and 57 deletions

View file

@ -40,11 +40,8 @@ $ helm install my-release penpot/penpot
| backend.resources | object | `{"limits":{},"requests":{}}` | Penpot backend resource requests and limits. Check [the official doc](https://kubernetes.io/docs/user-guide/compute-resources/) |
| backend.resources.limits | object | `{}` | The resources limits for the Penpot backend containers |
| backend.resources.requests | object | `{}` | The requested resources for the Penpot backend containers |
| backend.service.http.port | int | `6060` | The http service port to use. |
| backend.service.http.type | string | `"ClusterIP"` | The http service type to create. |
| backend.service.prepl.enabled | bool | `false` | Whether to enable the prepl service in the backend. |
| backend.service.prepl.port | int | `6063` | The prepl service port to use. |
| backend.service.prepl.type | string | `"ClusterIP"` | The prepl service type to create. |
| backend.service.port | int | `6060` | The http service port to use. |
| backend.service.type | string | `"ClusterIP"` | The http service type to create. |
| backend.tolerations | list | `[]` | Tolerations for Penpot pods assignment. Check [the official doc](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |
### Configuration parameters

View file

@ -65,10 +65,6 @@ spec:
{{- end }}
- name: PENPOT_TELEMETRY_ENABLED
value: {{ .Values.config.telemetryEnabled | quote }}
{{- if .Values.backend.service.prepl.enabled }}
- name: PENPOT_PREPL_HOST
value: "0.0.0.0"
{{- end }}
{{/* PosgreSQL connection settings */}}
- name: PENPOT_DATABASE_URI
{{- if .Values.config.postgresql.host }}
@ -380,13 +376,8 @@ spec:
readOnly: false
ports:
- name: http
containerPort: {{ .Values.backend.service.http.port }}
containerPort: {{ .Values.backend.service.port }}
protocol: TCP
{{- if .Values.backend.service.prepl.enabled }}
- name: prepl
containerPort: {{ .Values.backend.service.prepl.port }}
protocol: TCP
{{- end }}
resources:
{{- toYaml .Values.backend.resources | nindent 12 }}
{{- with .Values.backend.nodeSelector }}

View file

@ -8,30 +8,9 @@ metadata:
spec:
selector:
{{- include "penpot.backendSelectorLabels" . | nindent 4 }}
type: {{ .Values.backend.service.http.type }}
type: {{ .Values.backend.service.type }}
ports:
- port: {{ .Values.backend.service.http.port }}
targetPort: {{ .Values.backend.service.http.port }}
- port: {{ .Values.backend.service.port }}
targetPort: {{ .Values.backend.service.port }}
protocol: TCP
name: http
---
{{- if .Values.backend.service.prepl.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "penpot.fullname" . }}-backend-prepl
namespace: {{ .Release.Namespace }}
labels:
{{- include "penpot.labels" . | nindent 4 }}
spec:
selector:
{{- include "penpot.backendSelectorLabels" . | nindent 4 }}
type: {{ .Values.backend.service.prepl.type }}
ports:
- port: {{ .Values.backend.service.prepl.port }}
targetPort: {{ .Values.backend.service.prepl.port }}
protocol: TCP
name: prepl
{{- end }}

View file

@ -47,7 +47,7 @@ spec:
- name: PENPOT_FLAGS
value: "$PENPOT_FLAGS {{ .Values.config.flags }}"
- name: PENPOT_BACKEND_URI
value: {{ print "http://" (include "penpot.fullname" .) "-backend:" .Values.backend.service.http.port }}
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 }}
volumeMounts:

View file

@ -320,23 +320,12 @@ backend:
# @section -- Backend parameters
replicaCount: 1
service:
http:
# -- The http service type to create.
# @section -- Backend parameters
type: ClusterIP
# -- The http service port to use.
# @section -- Backend parameters
port: 6060
prepl:
# -- Whether to enable the prepl service in the backend.
# @section -- Backend parameters
enabled: false
# -- The prepl service type to create.
# @section -- Backend parameters
type: ClusterIP
# -- The prepl service port to use.
# @section -- Backend parameters
port: 6063
# -- The http service type to create.
# @section -- Backend parameters
type: ClusterIP
# -- The http service port to use.
# @section -- Backend parameters
port: 6060
# -- An optional map of annotations to be applied to the controller Deployment
# @section -- Backend parameters
deploymentAnnotations: {}