Skip to content

Commit

Permalink
Update examples for k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
paunin committed Jul 12, 2019
1 parent c0b2b49 commit 77a97ae
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion k8s/example1-basic-multilevel/nodes/node1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: mysystem-db-node1
image: postdock/postgres:latest-postgres102-repmgr32
image: postdock/postgres:latest-postgres11-repmgr40
imagePullPolicy: Always
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion k8s/example1-basic-multilevel/nodes/node2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: mysystem-db-node2
image: postdock/postgres:latest-postgres102-repmgr32
image: postdock/postgres:latest-postgres11-repmgr40
imagePullPolicy: Always
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion k8s/example1-basic-multilevel/nodes/node3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: mysystem-db-node3
image: postdock/postgres:latest-postgres102-repmgr32
image: postdock/postgres:latest-postgres11-repmgr40
imagePullPolicy: Always
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion k8s/example1-basic-multilevel/nodes/node4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: mysystem-db-node4
image: postdock/postgres:latest-postgres102-repmgr32
image: postdock/postgres:latest-postgres11-repmgr40
imagePullPolicy: Always
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion k8s/example1-basic-multilevel/nodes/node5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: mysystem-db-node5
image: postdock/postgres:latest-postgres102-repmgr32
image: postdock/postgres:latest-postgres11-repmgr40
imagePullPolicy: Always
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion k8s/example1-basic-multilevel/pgpool/pgpool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
containers:
- name: database-pgpool
image: postdock/pgpool:latest-pgpool37-postgres102
image: postdock/pgpool:latest-pgpool37-postgres11
livenessProbe:
exec:
command: ['bash', '-c', '/usr/local/bin/pgpool/has_write_node.sh && /usr/local/bin/pgpool/has_enough_backends.sh']
Expand Down
2 changes: 1 addition & 1 deletion k8s/example2-single-statefulset/nodes/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: db-node
image: postdock/postgres:latest-postgres102-repmgr32
image: postdock/postgres:latest-postgres11-repmgr40
livenessProbe:
exec:
command: ['bash', '-c', '/usr/local/bin/cluster/healthcheck/is_major_master.sh']
Expand Down
2 changes: 1 addition & 1 deletion k8s/example2-single-statefulset/pgpool/pgpool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
containers:
- name: database-pgpool
image: postdock/pgpool:latest-pgpool37-postgres102
image: postdock/pgpool:latest-pgpool37-postgres11
livenessProbe:
exec:
command: ['bash', '-c', '/usr/local/bin/pgpool/has_write_node.sh && /usr/local/bin/pgpool/has_enough_backends.sh']
Expand Down
6 changes: 3 additions & 3 deletions k8s/helm/PostDock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ postgres:
# postgres.image - is the image to use for postgres component
image: postdock/postgres
# postgres.tag - is the tag to use for postgres component image (@see https://hub.docker.com/r/postdock/postgres/tags/)
tag: latest-postgres10-repmgr32
tag: latest-postgres11-repmgr40
# postgres.replicas - number of nodes in you postgres cluster
replicas: 3
# postgres.clusterName - cluster name inside PostDock
Expand Down Expand Up @@ -70,7 +70,7 @@ pgpool:
# pgpool.image - is the image to use for pgpool component
image: postdock/pgpool
# pgpool.tag - is the tag to use for pgpool component image (@see https://hub.docker.com/r/postdock/pgpool/tags/)
tag: latest-pgpool37-postgres10
tag: latest-pgpool37-postgres11
# pgpool.replicas - number of pgpools for your cluster
replicas: 2
# pgpool.users - users in format of PostDock to access cluster through pgpool (@see https://github.com/paunin/PostDock#pgpool)
Expand All @@ -94,7 +94,7 @@ barman:
# barman.image - is the image to use for barman component
image: postdock/barman
# barman.tag - is the tag to use for barman component image (@see https://hub.docker.com/r/postdock/postgres/tags/)
tag: latest-barman24-postgres10
tag: latest-barman24-postgres11
# barman.backupSchedule - how often barman should do backups, empty schedule will disable barman
backupSchedule: "*/30 */5 * * *"
# barman.resources - define (in k8s style) resources for barman pod of PostDock release
Expand Down

0 comments on commit 77a97ae

Please sign in to comment.