Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .github/workflows/helm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:
echo "vector service has started, moving on..."
while [[ -z "$(kubectl get pod | grep "^stac-$RELEASE_NAME-.*$" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} | grep "GET /_mgmt/ping" | head -n 1)" ]]; do
echo "still waiting for stac service to start..."
kubectl get pods
kubectl get jobs
kubectl get svc
kubectl get services
sleep 1
done
echo "all services have started, moving on..."
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Variables
HELM_REPO_URL=https://devseed.com/eoapi-k8s/
HELM_CHART_NAME=eoapi/eoapi
PGO_CHART_VERSION=5.7.0
PGO_CHART_VERSION=5.7.4

.PHONY: all deploy minikube ingest help

Expand Down
1 change: 1 addition & 0 deletions helm-chart/eoapi/initdb-data/pgstac-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"GRANT pgstac_read TO {username};"
"GRANT pgstac_ingest TO {username};"
"GRANT pgstac_admin TO {username};"
"ALTER USER {username} SET search_path TO pgstac, public;" # add pgstac to search_path by default
).format(
db_name=sql.Identifier(os.environ["POSTGRES_DBNAME"]),
username=sql.Identifier(os.environ["POSTGRES_USER"]),
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/eoapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pgstacBootstrap:
enabled: true
image:
name: ghcr.io/stac-utils/pgstac
tag: v0.8.2
tag: v0.9.5
command:
- "sh"
args:
Expand Down Expand Up @@ -323,7 +323,7 @@ stac:
requestRate: 100000m
image:
name: ghcr.io/stac-utils/stac-fastapi-pgstac
tag: 2.4.9
tag: 5.0.1
command:
- "uvicorn"
- "stac_fastapi.pgstac.app:app"
Expand Down
8 changes: 5 additions & 3 deletions helm-chart/postgrescluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: postgrescluster
description: A Helm chart for eoapi database dep for k8s
type: application
# The version below should match the version on the PostgresCluster CRD
version: 5.5.3
appVersion: 5.5.3
force: true
# from CrunchyData's Postgres Operator
# https://access.crunchydata.com/documentation/postgres-operator/latest/releases
version: 5.7.4
appVersion: 5.7.4
force: true
2 changes: 2 additions & 0 deletions helm-chart/postgrescluster/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
memory: {{ default "" .Values.instanceMemory | quote }}
{{- end }}
{{- end }}
{{- if .Values.backupsEnabled }}
backups:
pgbackrest:
{{- if .Values.imagePgBackRest }}
Expand Down Expand Up @@ -142,6 +143,7 @@ spec:
requests:
storage: {{ default "1Gi" .Values.backupsSize | quote }}
{{- end }}
{{- end }}
{{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
proxy:
pgBouncer:
Expand Down
7 changes: 7 additions & 0 deletions helm-chart/postgrescluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ postgresVersion: 16
# Backups / pgBackRest Settings #
#################################

# backupsEnabled sets whether pgBackRest backups are enabled.
# This is enabled by default.
# Disabling backups is only supported on CrunchyData Postgres Operator v5.7.0 and above.
# If enabled, please carefully review the pgBackRest config below.
# Check out CrunchyData's Postgres Operator docs for more info:
# https://access.crunchydata.com/documentation/postgres-operator/v5/tutorials/backups-disaster-recovery/backups
backupsEnabled: true
# backupsSize sets the storage size of the backups to a volume in Kubernetes.
# can be overridden by "pgBackRestConfig", if set. Defaults to the value below.
# backupsSize: 1Gi
Expand Down
Loading