Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Refactors eoapi-support into core eoapi chart [#262](https://github.com/developmentseed/eoapi-k8s/pull/262)

## [0.7.13] - 2025-11-04

### Added
Expand Down Expand Up @@ -44,10 +48,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Adjusted Renovate Configuration to fit conventional commits [#295](https://github.com/developmentseed/eoapi-k8s/pull/295)
- Notification triggers in database [#289](https://github.com/developmentseed/eoapi-k8s/pull/289)

### Changed

- Excluded renovate.json from CHANGELOG.md edits [#301](https://github.com/developmentseed/eoapi-k8s/pull/301)

## [0.7.8] - 2025-09-10

### Added
Expand Down
2 changes: 0 additions & 2 deletions charts/eoapi-support/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions charts/eoapi-support/.helmignore

This file was deleted.

33 changes: 0 additions & 33 deletions charts/eoapi-support/Chart.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions charts/eoapi-support/README.md

This file was deleted.

178 changes: 0 additions & 178 deletions charts/eoapi-support/values.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions charts/eoapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ dependencies:
version: v1.20.0
repository: https://knative.github.io/operator
condition: knative.enabled
- name: metrics-server
version: 7.4.12
repository: https://charts.bitnami.com/bitnami
condition: monitoring.metricsServer.enabled
- name: prometheus
version: 27.45.0
repository: https://prometheus-community.github.io/helm-charts
condition: monitoring.prometheus.enabled
- name: prometheus-adapter
version: 5.2.0
repository: https://prometheus-community.github.io/helm-charts
condition: monitoring.prometheusAdapter.enabled
- name: grafana
version: 10.1.4
repository: https://grafana.github.io/helm-charts
condition: observability.grafana.enabled
2 changes: 2 additions & 0 deletions charts/eoapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ A Helm chart for deploying Earth Observation APIs with integrated STAC, raster,
- Flexible database configuration
- Real-time PostgreSQL notifications for STAC item changes
- Unified ingress system
- Autoscaling
- Integrated observability (Prometheus & Grafana)

## TL;DR

Expand Down
40 changes: 40 additions & 0 deletions charts/eoapi/templates/_monitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{{/*
Common monitoring configurations to avoid duplication across values files
*/}}

{{/*
Standard monitoring configuration with environment-specific settings
Usage: {{ include "eoapi.monitoring.config" (dict "context" . "environment" "production" "persistence" true) }}
Environments: basic, production, testing
*/}}
{{- define "eoapi.monitoring.config" -}}
{{- $ctx := .context -}}
{{- $env := .environment | default "basic" -}}
{{- $persistence := .persistence | default false -}}
metricsServer:
enabled: true
apiService:
create: true
prometheus:
enabled: true
alertmanager:
enabled: {{ if eq $env "production" }}true{{ else }}false{{ end }}
prometheus-pushgateway:
enabled: false
kube-state-metrics:
enabled: true
prometheus-node-exporter:
enabled: true
resources: {{- include "eoapi.resources.small" $ctx | nindent 6 }}
server:
service:
type: ClusterIP
{{- if $persistence }}
persistentVolume:
enabled: true
size: 10Gi
{{- else }}
persistentVolume:
enabled: false
{{- end }}
{{- end -}}
51 changes: 51 additions & 0 deletions charts/eoapi/templates/_resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{{/*
Common resource definitions to avoid duplication across values files
*/}}

{{/*
Small resource allocation for lightweight components
*/}}
{{- define "eoapi.resources.small" -}}
limits:
cpu: 10m
memory: 30Mi
requests:
cpu: 10m
memory: 30Mi
{{- end -}}

{{/*
Medium resource allocation for standard services
*/}}
{{- define "eoapi.resources.medium" -}}
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
{{- end -}}

{{/*
Large resource allocation for heavy workloads
*/}}
{{- define "eoapi.resources.large" -}}
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 256Mi
{{- end -}}

{{/*
Grafana specific resources based on observed usage patterns
*/}}
{{- define "eoapi.resources.grafana" -}}
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 50m
memory: 100Mi
{{- end -}}
Loading