Helm chart defaults don't work: storage mounts, service names, storage class, migration schedule
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- helm, kubernetes
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Start by rendering the chart with helm template ex k8s/exceptionless and read k8s/exceptionless/templates/config.yaml, jobs.yaml, storage.yaml, and the Elasticsearch and Redis templates. Check the rendered service names, storage mounts and claim settings, and migration CronJob schedule against the defaults described in the issue. Done means a default install connects to bundled services, storage jobs can access their files, the claim can use the cluster’s default storage class, and migrations run only when triggered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A default install of k8s/exceptionless (no connection strings set) does not work end to end. The chart's fallback Elasticsearch and Redis services don't match the connection strings it generates, the event-posts job can't read posted events from the default folder storage, the storage claim targets an Azure-only class, and the "manual only" migration CronJob is scheduled to run.
Rendered with helm template ex k8s/exceptionless at c6583c14b.
Checklist
- event-posts (and other storage jobs) don't mount the storage volume. With
storage.connectionStringunset, the chart usesprovider=folder;path=/app/storage(config.yaml L39) and mounts the claim only in the app, API and work-item pods. The event-posts deployment has no volume, soEventPostsJoblooks for payloads in its own empty/app/storageand every posted event fails with "Unable to retrieve payload". The cleanup-data and download-geoip-database CronJobs also useIFileStorageand have no mount. (Reported earlier in #580, closed without a chart change.) - Default Elasticsearch connection string points at a service the chart doesn't create. config.yaml L33 defaults to
server=http://elasticsearch:9200, but the fallback service is named<fullname>-elasticsearch(elasticsearch.yaml L92-L95). Rendered:server=http://elasticsearch:9200vs serviceex-elasticsearch. - Default Redis connection string points at a service the chart doesn't create. config.yaml L34-L35 generates
<fullname>-redis-master, but the fallback service is<fullname>-redis(redis.yaml L36-L39). Rendered:ex-redis-master,abortConnect=falsevs serviceex-redis. - Storage claim is Azure-only and can't be satisfied as written. storage.yaml hardcodes
storageClassName: managed-csi-premium, which only exists on AKS, so the claim staysPendingelsewhere. On AKS that class is Azure Disk, which doesn't supportReadWriteManyfilesystem volumes, so theReadWriteManyclaim can't bind there either. - "Never" migration CronJob runs every Monday in February. jobs.yaml L420 uses
schedule: "0 0 29 2 1" # never, only manually. When both day-of-month and day-of-week are restricted, cron runs when either matches, so this fires at midnight on Feb 29 and on every Monday in February.
Expected
helm install with default values produces a working instance: jobs connect to the bundled Elasticsearch and Redis, posted events are processed, the claim binds on a typical cluster, and the migration job only runs when triggered.
Suggested fix
- Mount the storage claim in every job that uses file storage (event-posts, cleanup-data, download-geoip-database), ideally through a shared helper in
_helpers.tpl. - Default the Elasticsearch connection string to
server=http://{{ fullname }}-elasticsearch:9200and the Redis one to{{ fullname }}-redis,abortConnect=false. - Add
storage.storageClassName(empty by default, so the cluster default is used) andstorage.accessModes/storage.sizevalues. Document that aReadWriteMany-capable class (NFS, Azure Files, EFS) or an object-storage connection string is needed when pods run on more than one node. - Mark the migration CronJob
suspend: true(keeping a valid schedule) so it only runs viakubectl create job --from=cronjob/....
- Ngôn ngữ chính
- C#
- Star
- 2.5k
- Fork
- 508
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 40
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của exceptionless/Exceptionless
-
bug documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
exceptionless/Exceptionless#2707 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
exceptionless/Exceptionless#2706 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
exceptionless/Exceptionless#2705 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
exceptionless/Exceptionless#2704 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
exceptionless/Exceptionless#2703 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của exceptionless/Exceptionless
Issue tương tự
-
Add 'upm' tag on githubĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug mac アプリ: コード アプリ: チャット 優先: 中 要トリアージ
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
yksr-melt/Meltype#1346 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Collect corrected translations in the app, with no GitHub account and the least possible frictionĐang mởlocalization medium ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
hexide-io/HexIDE#2819 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100