From e204c911d62e9fbb884f9318c580de725c1c9be9 Mon Sep 17 00:00:00 2001 From: Andrei Kurilov <18027129+akurilov@users.noreply.github.com> Date: Sun, 6 Oct 2024 20:28:33 +0300 Subject: [PATCH] init --- config/config.go | 4 ++-- helm/int-email/templates/deployment.yaml | 8 ++------ helm/int-email/values.yaml | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/config/config.go b/config/config.go index fa294c8..b006e03 100644 --- a/config/config.go +++ b/config/config.go @@ -24,8 +24,8 @@ type ApiConfig struct { Limit uint16 `envconfig:"API_SMTP_RECIPIENTS_LIMIT" default:"100" required:"true"` } Timeout struct { - Read time.Duration `envconfig:"API_SMTP_TIMEOUT_READ" default:"10s" required:"true"` - Write time.Duration `envconfig:"API_SMTP_TIMEOUT_WRITE" default:"10s" required:"true"` + Read time.Duration `envconfig:"API_SMTP_TIMEOUT_READ" default:"1m" required:"true"` + Write time.Duration `envconfig:"API_SMTP_TIMEOUT_WRITE" default:"1m" required:"true"` } } EventType EventTypeConfig diff --git a/helm/int-email/templates/deployment.yaml b/helm/int-email/templates/deployment.yaml index d884fe9..5b20321 100644 --- a/helm/int-email/templates/deployment.yaml +++ b/helm/int-email/templates/deployment.yaml @@ -31,8 +31,6 @@ spec: containers: - name: {{ .Chart.Name }} env: - - name: API_PORT - value: "{{ .Values.service.port }}" - name: API_SMTP_PORT value: "{{ .Values.service.port }}" {{- range .Values.ingress.hosts }} @@ -55,8 +53,6 @@ spec: value: "{{ .Values.api.writer.cache.ttl }}" - name: API_WRITER_URI value: "{{ .Values.api.writer.uri }}" - - name: API_READER_URI - value: "{{ .Values.api.reader.uri }}" - name: API_READER_URI_EVT_BASE value: "{{ .Values.api.reader.uriEvtBase }}" - name: LOG_LEVEL @@ -74,12 +70,12 @@ spec: livenessProbe: tcpSocket: port: {{ .Values.service.port }} - initialDelaySeconds: 10 + initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: tcpSocket: port: {{ .Values.service.port }} - initialDelaySeconds: 10 + initialDelaySeconds: 30 periodSeconds: 10 resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/helm/int-email/values.yaml b/helm/int-email/values.yaml index f1fffac..962dc4b 100644 --- a/helm/int-email/values.yaml +++ b/helm/int-email/values.yaml @@ -37,7 +37,7 @@ securityContext: {} service: type: LoadBalancer - port: 25 + port: 465 ingress: enabled: false