add alembic and store metrics at db
This commit is contained in:
43
k8s/cnpg.yaml
Normal file
43
k8s/cnpg.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: fastapi-pg
|
||||
spec:
|
||||
instances: 1
|
||||
superuserSecret:
|
||||
name: cluster-example-superuser
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: app
|
||||
owner: app
|
||||
secret:
|
||||
name: cluster-example-app-user
|
||||
storage:
|
||||
size: 1Gi
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
password: cGFzc3dvcmQxMjMK
|
||||
username: cG9zdGdyZXM=
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: cluster-example-superuser
|
||||
type: kubernetes.io/basic-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
password: VHhWZVE0bk44MlNTaVlIb3N3cU9VUlp2UURhTDRLcE5FbHNDRUVlOWJ3RHhNZDczS2NrSWVYelM1Y1U2TGlDMg==
|
||||
username: YXBw
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: cluster-example-app-user
|
||||
type: kubernetes.io/basic-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: db-secrets
|
||||
type: Opaque
|
||||
data:
|
||||
url: cG9zdGdyZXNxbCtwc3ljb3BnMjovL2FwcDpUeFZlUTRuTjgyU1NpWUhvc3dxT1VSWnZRRGFMNEtwTkVsc0NFRWU5YndEeE1kNzNLY2tJZVh6UzVjVTZMaUMyQGZhc3RhcGktcGctcncvYXBw
|
||||
Reference in New Issue
Block a user