brusnika-stage: initialize premises PostgreSQL extensions
This commit is contained in:
parent
859546dafb
commit
e46f0b060c
@ -1,3 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: postgres-init
|
||||
namespace: premises
|
||||
data:
|
||||
extensions.sql: 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
|
||||
'
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@ -27,6 +39,9 @@ spec:
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
- name: init
|
||||
mountPath: /docker-entrypoint-initdb.d
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
@ -42,6 +57,9 @@ spec:
|
||||
volumes:
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
- name: init
|
||||
configMap:
|
||||
name: postgres-init
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Equal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user