Make example manifests minikube-friendly.
Remove fixed namespace from all manifests, reduce resource requests. Remove the storageclass default, since it is not present in minikube. Use the team name instead of integer id, remove unused robots. The manifests are still compatible with the non-local deployment, the only difference is that now a namespace is requred (assuming that the operator can only be deployed in a specific namespace.)
This commit is contained in:
parent
b4791be520
commit
1817bf65a1
|
|
@ -2,7 +2,6 @@ apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres-operator
|
name: postgres-operator
|
||||||
namespace: acid
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,5 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: operator
|
name: operator
|
||||||
namespace: acid
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: pierone.example.com
|
- name: pierone.example.com
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,15 @@ kind: "Postgresql"
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: testcluster
|
name: testcluster
|
||||||
namespace: default
|
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
teamId: "50051320"
|
teamId: "ACID"
|
||||||
volume:
|
volume:
|
||||||
size: 10Gi
|
size: 5Gi
|
||||||
storageClass: standard
|
numberOfInstances: 2
|
||||||
numberOfInstances: 3
|
|
||||||
users: #Application/Robot users
|
users: #Application/Robot users
|
||||||
jdoe:
|
zalando:
|
||||||
- superuser
|
- superuser
|
||||||
- createdb
|
- createdb
|
||||||
rmiles:
|
|
||||||
rroe:
|
|
||||||
allowedSourceRanges: #Load balancer source ranges
|
allowedSourceRanges: #Load balancer source ranges
|
||||||
- 127.0.0.1/32
|
- 127.0.0.1/32
|
||||||
|
|
||||||
|
|
@ -24,12 +19,12 @@ spec:
|
||||||
postgresql:
|
postgresql:
|
||||||
version: "9.6"
|
version: "9.6"
|
||||||
parameters:
|
parameters:
|
||||||
shared_buffers: "500MB"
|
shared_buffers: "32MB"
|
||||||
max_connections: "10"
|
max_connections: "10"
|
||||||
log_statement: "all"
|
log_statement: "all"
|
||||||
resources:
|
resources:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 20Mi
|
memory: 100Mi
|
||||||
patroni:
|
patroni:
|
||||||
initdb:
|
initdb:
|
||||||
encoding: "UTF8"
|
encoding: "UTF8"
|
||||||
|
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
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
|
|
||||||
Loading…
Reference in New Issue