Initial render: k3s-dev environment
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: cc-jdbc
|
||||
namespace: abinitio-db
|
||||
spec:
|
||||
data:
|
||||
- remoteRef:
|
||||
key: secret/abinitio/cc-jdbc
|
||||
property: username
|
||||
secretKey: username
|
||||
- remoteRef:
|
||||
key: secret/abinitio/cc-jdbc
|
||||
property: password
|
||||
secretKey: password
|
||||
refreshInterval: 1m
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: vault-store
|
||||
target:
|
||||
name: cc-jdbc
|
||||
template:
|
||||
data:
|
||||
jdbc-uri: jdbc:postgresql://controlcenter-db-rw.abinitio-db:5432/controlcenter?password={{
|
||||
.password }}&user={{ .username }}
|
||||
password: '{{ .password }}'
|
||||
pgpass: controlcenter-db-rw:5432:controlcenter:{{ .username }}:{{ .password
|
||||
}}
|
||||
uri: postgresql://{{ .username }}:{{ .password }}@controlcenter-db-rw.abinitio-db:5432/controlcenter
|
||||
username: '{{ .username }}'
|
||||
metadata:
|
||||
labels:
|
||||
cnpg.io/reload: "true"
|
||||
@@ -0,0 +1,37 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: controlcenter
|
||||
namespace: abinitio-db
|
||||
spec:
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: controlcenter
|
||||
owner: cc_jdbc
|
||||
postInitApplicationSQLRefs:
|
||||
configMapRefs:
|
||||
- key: controlcenter.sql
|
||||
name: controlcenter-sql
|
||||
secret:
|
||||
name: cc-jdbc
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:16
|
||||
instances: 2
|
||||
managed:
|
||||
roles:
|
||||
- login: true
|
||||
name: cc_jdbc
|
||||
passwordSecret:
|
||||
name: cc-jdbc
|
||||
postgresql:
|
||||
parameters:
|
||||
effective_cache_size: 4GB
|
||||
shared_buffers: 2GB
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: 8Gi
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: 4Gi
|
||||
storage:
|
||||
size: 30Gi
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user