Skip to content

Commit

Permalink
Add DeployAI marketplace postgis
Browse files Browse the repository at this point in the history
  • Loading branch information
dwendland committed Jul 24, 2024
1 parent 09525a4 commit eb8c80e
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
18 changes: 18 additions & 0 deletions aws/apps/deployai/marketplace/postgis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgis-marketplace
namespace: argocd
spec:
destination:
namespace: deployai
server: https://kubernetes.default.svc
project: default
source:
path: aws/deployai/marketplace/postgis
repoURL: https://github.com/FIWARE-Ops/fiware-gitops
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
12 changes: 12 additions & 0 deletions aws/deployai/marketplace/postgis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v2
name: postgres
description: Chart holder for argo-cd

type: application
version: 13.1.5
appVersion: "16.0.0"

dependencies:
- name: postgresql
version: 13.1.5
repository: oci://registry-1.docker.io/bitnamicharts
34 changes: 34 additions & 0 deletions aws/deployai/marketplace/postgis/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
postgresql:

fullnameOverride: postgis

auth:
# Credentials for Keycloak DB
username: scorpio
enablePostgresUser: true
existingSecret: postgres-secret
secretKeys:
adminPasswordKey: postgres-root-password
userPasswordKey: postgres-password

rbac:
create: true
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- anyuid
resources:
- securitycontextconstraints
verbs:
- use

# Init DB
primary:
persistence:
size: 1Gi
initdb:
scripts:
enable.sh: |
psql postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432 -c "CREATE EXTENSION postgis;"
psql postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432 -c "CREATE DATABASE ngb;"

0 comments on commit eb8c80e

Please sign in to comment.