Skip to content
Merged
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.5] - 2025-07-11

### Changed

- Added option to overrid root-paths of API services [#245](https://github.com/developmentseed/eoapi-k8s/pull/245)

## [0.7.4] - 2025-06-30

### Changed
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/eoapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ annotations:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "0.7.4"
version: "0.7.5"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 12 additions & 0 deletions helm-chart/eoapi/templates/services/multidim/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ spec:
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
- "--proxy-headers"
- "--forwarded-allow-ips=*"
{{- if .Values.multidim.overrideRootPath}}
- "--root-path={{ .Values.multidim.overrideRootPath }}"
{{- else }}
- "--root-path={{ .Values.multidim.ingress.path }}"
{{- end }}
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
livenessProbe:
tcpSocket:
Expand All @@ -51,14 +55,22 @@ spec:
timeoutSeconds: 1
readinessProbe:
httpGet:
{{- if .Values.multidim.overrideRootPath}}
path: {{ .Values.multidim.overrideRootPath }}/healthz
Copy link
Contributor

Choose a reason for hiding this comment

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

z in this is gross but that's another day 🤣

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, please, this needs to be fixed upstream - fyi @vincentsarago

{{- else}}
path: /healthz
{{- end}}
port: {{ .Values.service.port }}
failureThreshold: 3
periodSeconds: 15
successThreshold: 1
startupProbe:
httpGet:
{{- if .Values.multidim.overrideRootPath}}
path: {{ .Values.multidim.overrideRootPath }}/healthz
{{- else}}
path: /healthz
{{- end}}
port: {{ .Values.service.port }}
# check every sec for 1 minute
periodSeconds: 1
Expand Down
12 changes: 12 additions & 0 deletions helm-chart/eoapi/templates/services/raster/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ spec:
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
- "--proxy-headers"
- "--forwarded-allow-ips=*"
{{- if .Values.raster.overrideRootPath}}
- "--root-path={{ .Values.raster.overrideRootPath }}"
{{- else }}
- "--root-path={{ .Values.raster.ingress.path }}"
{{- end }}
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
livenessProbe:
tcpSocket:
Expand All @@ -51,14 +55,22 @@ spec:
timeoutSeconds: 1
readinessProbe:
httpGet:
{{- if .Values.raster.overrideRootPath}}
path: {{ .Values.raster.overrideRootPath }}/healthz
{{- else}}
path: /healthz
{{- end}}
port: {{ .Values.service.port }}
failureThreshold: 3
periodSeconds: 15
successThreshold: 1
startupProbe:
httpGet:
{{- if .Values.raster.overrideRootPath}}
path: {{ .Values.raster.overrideRootPath }}/healthz
{{- else}}
path: /healthz
{{- end}}
port: {{ .Values.service.port }}
# check every sec for 1 minute
periodSeconds: 1
Expand Down
12 changes: 12 additions & 0 deletions helm-chart/eoapi/templates/services/stac/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ spec:
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
- "--proxy-headers"
- "--forwarded-allow-ips=*"
{{- if .Values.stac.overrideRootPath}}
- "--root-path={{ .Values.stac.overrideRootPath }}"
{{- else }}
- "--root-path={{ .Values.stac.ingress.path }}"
{{- end }}
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
livenessProbe:
tcpSocket:
Expand All @@ -51,14 +55,22 @@ spec:
timeoutSeconds: 1
readinessProbe:
httpGet:
{{- if .Values.stac.overrideRootPath}}
path: {{ .Values.stac.overrideRootPath }}/_mgmt/ping
{{- else}}
path: /_mgmt/ping
{{- end}}
port: {{ .Values.service.port }}
failureThreshold: 3
periodSeconds: 15
successThreshold: 1
startupProbe:
httpGet:
{{- if .Values.stac.overrideRootPath}}
path: {{ .Values.stac.overrideRootPath }}/_mgmt/ping
{{- else}}
path: /_mgmt/ping
{{- end}}
port: {{ .Values.service.port }}
# check every sec for 1 minute
periodSeconds: 1
Expand Down
12 changes: 12 additions & 0 deletions helm-chart/eoapi/templates/services/vector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ spec:
{{- if (and (.Values.ingress.className) (or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "traefik"))) }}
- "--proxy-headers"
- "--forwarded-allow-ips=*"
{{- if .Values.vector.overrideRootPath}}
- "--root-path={{ .Values.vector.overrideRootPath }}"
{{- else }}
- "--root-path={{ .Values.vector.ingress.path }}"
{{- end }}
{{- end }}{{/* needed for proxies and path rewrites on NLB */}}
livenessProbe:
tcpSocket:
Expand All @@ -51,14 +55,22 @@ spec:
timeoutSeconds: 1
readinessProbe:
httpGet:
{{- if .Values.vector.overrideRootPath}}
path: {{ .Values.vector.overrideRootPath }}/healthz
{{- else}}
path: /healthz
{{- end}}
port: {{ .Values.service.port }}
failureThreshold: 3
periodSeconds: 15
successThreshold: 1
startupProbe:
httpGet:
{{- if .Values.vector.overrideRootPath}}
path: {{ .Values.vector.overrideRootPath }}/healthz
{{- else}}
path: /healthz
{{- end}}
port: {{ .Values.service.port }}
# check every sec for 1 minute
periodSeconds: 1
Expand Down
5 changes: 5 additions & 0 deletions helm-chart/eoapi/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
}
}
},

"postgresql": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -412,6 +413,10 @@
},
"description": "Container command"
},
"overrideRootPath": {
"type": "string",
"description": "Override root path for this service"
},
"settings": {
"type": "object",
"properties": {
Expand Down