Code refactor

This commit is contained in:
Murat Kabilov
2017-05-12 11:37:09 +02:00
parent 0821990720
commit abb1173035
20 changed files with 788 additions and 701 deletions
+41
View File
@@ -0,0 +1,41 @@
apiVersion: "acid.zalan.do/v1"
kind: "Postgresql"
metadata:
name: testcluster
spec:
volume:
size: 100Gi
storageClass: gp2
numberOfInstances: 3
postgresql:
version: "9.6"
parameters:
shared_buffers: "500MB"
max_connections: "10"
log_statement: "all"
users:
jdoe:
- superuser
- createdb
rmiles:
rroe:
resources:
cpu: 100m
memory: 500Mi
patroni:
initdb:
encoding: "UTF8"
locale: "en_US.UTF-8"
data-checksums: "true"
pg_hba:
- hostssl all all 0.0.0.0/0 md5
- host all all 0.0.0.0/0 md5
ttl: 30
loop_wait: &loop_wait 10
retry_timeout: 10
maximum_lag_on_failover: 33554432
maintenanceWindows:
- 01:00-06:00 #UTC
- Sat:00:00-Sat:04:00
+41
View File
@@ -0,0 +1,41 @@
apiVersion: "acid.zalan.do/v1"
kind: "Postgresql"
metadata:
name: testcluster
spec:
volume:
size: 100Gi
storageClass: gp2
numberOfInstances: 2
postgresql:
version: "9.6"
parameters:
shared_buffers: "500MB"
max_connections: "10"
log_statement: "all"
users:
jdoe:
- superuser
- createdb
rmiles:
rroe:
resources:
cpu: 100m
memory: 500Mi
patroni:
initdb:
encoding: "UTF8"
locale: "en_US.UTF-8"
data-checksums: "true"
pg_hba:
- hostssl all all 0.0.0.0/0 md5
- host all all 0.0.0.0/0 md5
ttl: 30
loop_wait: &loop_wait 10
retry_timeout: 10
maximum_lag_on_failover: 33554432
maintenanceWindows:
- 01:00-06:00 #UTC
- Sat:00:00-Sat:04:00
-18
View File
@@ -1,18 +0,0 @@
apiVersion: "acid.zalan.do/v1"
kind: "Spilo"
metadata:
name: testcluster
spec:
docker_image: registry.opensource.zalan.do/acid/spilo-9.6:1.2-p9
etcd_host: etcd-client.default.svc.cluster.local:2379
volume_size: 100 # GB
resource_cpu: 100m
resource_memory: 500Mi
number_of_instances: 3
postgres_configuration:
- param: "max_connections"
value: "10"
- param: "shared_buffers"
value: "500MB"