Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Oct 6, 2024
1 parent 740c6f6 commit e204c91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions helm/int-email/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion helm/int-email/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ securityContext: {}

service:
type: LoadBalancer
port: 25
port: 465

ingress:
enabled: false
Expand Down

0 comments on commit e204c91

Please sign in to comment.