Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRO-6845] TileGen API #552

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

[PRO-6845] TileGen API #552

wants to merge 1 commit into from

Conversation

v-loboda
Copy link
Collaborator

Pull Request description

Changelog

  • Some changes (A description of the changes proposed in the pull request.)

Issues

  • Issue-123 (Link to related issue)

Breaking changes

  • If there are breaking changes, they need to be added to the file Breaking-Changes

Check-list. Чек-лист код-ревью

  • Запрос на слияние в develop.
  • Есть описание к PR.
  • Указаны блокирующие изменения. Breaking-Changes
  • Соответствие кода принятому стилю
    • Описание настроек.
    • Именование настроек.
    • Дефолтные значения.
    • Стиль кода.
  • Работоспособность. Разворачивается на своем окружении из ветки PR.
    • Тест API через тесты helmfile-хуков или коллекций Postman.
  • Не осталось мусора от удаления каких-то параметров. Ищется поиском по проекту из ветки PR.
  • Отработка линтера на чарт из ветки PR. Пример: helm lint charts/search-api

@v-loboda v-loboda requested review from a team as code owners December 16, 2024 11:24
@v-loboda v-loboda force-pushed the PRO-6845-TileGen branch 4 times, most recently from 2de64f7 to 5d6e538 Compare December 17, 2024 06:14
Comment on lines 201 to 209
ingress:
enabled: false
hosts:
- host: tilegen-api.host
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше полное описание

ingress:
  enabled: false
  className: nginx
  hosts:
  - host: tilegen-api.example.com
    paths:
    - path: /
      pathType: Prefix
  tls: []
  # - hosts:
  #   - tilegen-api.example.com
  #   secretName: secret.tls

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

готово

@dbelyaev-nsk
Copy link
Contributor

задача на проверку https://jira.2gis.ru/browse/ONPREM-1351

app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает пустой строки в конце файла

s3SecretKey: {{ required "Valid .Values.s3.secretKey required!" .Values.s3.secretKey | b64enc }}
{{ if .Values.redis.password }}
redisPassword: {{ .Values.redis.password | b64enc }}
{{ end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает пустой строки в конце файла

@@ -0,0 +1,25 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай уберем dashs

@@ -0,0 +1,30 @@
{{- if .Values.vpa.enabled }}
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай уберем dashs

backoffLimit: {{ .Values.taskProcessor.backoffLimit }}
activeDeadlineSeconds: 43200
template:
spec:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v-loboda, наверное, стоит добавить:

  • imagePullSecrets
  • imagePullPolicy

# @param s3.secretKey S3 secret key for accessing the bucket. **Required**
# @param s3.vectorTilesBucket S3 bucket for storing vector tiles data. **Required**

s3:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Расширенные настройки s3 будем добавлять?

  region: ''
  secure: false/true
  verifySsl: true/false 

host: ''
accessKey: ''
secretKey: ''
vectorTilesBucket: ''
Copy link
Contributor

@mprudnikov3 mprudnikov3 Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай переименуем в bucket
В описании дается понимание что это за bucket и он один :)

serviceAccount: runner
tempPath: /tmp
allowAnyOrigin: false
logging:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v-loboda, нету возможности выставить уровень логирования? Debug, Info?

repository: 2gis-on-premise/tilegen-processor
tag: 1.1.6
backoffLimit: 1
successfulJobsHistoryLimit: 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v-loboda, если из API дергать POST /tasks, то не происходит очистка старых job:

mpr-tilegen-api-task-processor-worker-582nd-gxbmk               0/1     Completed           0                76s
mpr-tilegen-api-task-processor-worker-bc2hz-znmws               0/1     Completed           0                78s
mpr-tilegen-api-task-processor-worker-bfbpd-cw7ff               0/1     Completed           0                79s
mpr-tilegen-api-task-processor-worker-ngpcc-sfqkw               0/1     Completed           0                79s
mpr-tilegen-api-task-processor-worker-pzglw-kxp7g               0/1     Completed           0                78s
mpr-tilegen-api-task-processor-worker-qmmg6-8tqwf               0/1     Completed           0                77s
mpr-tilegen-api-task-processor-worker-ttfhr-m7rx9               0/1     Completed           0                82s
mpr-tilegen-api-task-processor-worker-v4f7d-5tgt5               0/1     Completed           0                11m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants