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

feat(nessie): add nessie to production #3121

Merged
merged 1 commit into from
Feb 28, 2025
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
2 changes: 2 additions & 0 deletions ops/k8s-apps/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ resources:
- ./trino
- ./consumer-trino
- ./metrics-calculation-service
- ./nessie
- ./nessie-cloudsql-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: production-nessie-cloudsql-proxy
spec:
values:
service:
annotations:
tailscale.com/expose: "true"
Copy link
Member

Choose a reason for hiding this comment

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

This might not be necessary (or possible because our tailscale might be out of trial), but let's keep it for now.

cloudsql:
instances:
- instance: nessie-psql
region: us-central1
project: opensource-observer
port: 5432
11 changes: 11 additions & 0 deletions ops/k8s-apps/production/nessie-cloudsql-proxy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/cloudsql-proxy
namespace: production-cloudsql-proxy
patches:
- path: ./custom-helm-values.yaml
target:
kind: HelmRelease
options:
allowNameChange: true
27 changes: 27 additions & 0 deletions ops/k8s-apps/production/nessie/custom-helm-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: production-nessie
spec:
values:
serviceAccount:
create: true
name: production-nessie
catalog:
enabled: true
iceberg:
defaultWarehouse: warehouse
warehouses:
- name: warehouse
location: gs://production-nessie-bucket/
storage:
gcs:
defaultOptions:
projectId: opensource-observer
jdbc:
jdbcUrl: jdbc:postgresql://production-nessie-cloudsql-proxy-gcloud-sqlproxy.production-cloudsql-proxy.svc.cluster.local:5432/postgres
secret:
name: nessie-postgres
password: gcp:secretmanager:production-nessie-db-password
username: gcp:secretmanager:production-nessie-db-user
versionStoreType: JDBC
11 changes: 11 additions & 0 deletions ops/k8s-apps/production/nessie/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/nessie
namespace: production-nessie
patches:
- path: ./custom-helm-values.yaml
target:
kind: HelmRelease
options:
allowNameChange: true
Loading