Fix kubernetes demo files (#885)

- Update postgres docker image to the latest 11 version.

- Remove empty lines inside the `RUN` command to make the Dockerfile compatible with future docker versions.

- Set the `PATRONI_KUBERNETES_POD_IP` environment variable, which is required when _use_endpoints_ is enabled. Otherwise, the `KeyError` is raised [here](https://github.com/zalando/patroni/blob/master/patroni/dcs/kubernetes.py#L95).

- Set `EDITOR` environment variable to make configuration changes via `patronictl edit-config`.
This commit is contained in:
Kostiantyn Nemchenko
2018-12-03 15:46:25 +01:00
committed by Alexander Kukushkin
parent e684ca66e5
commit 96ea01bee4
5 changed files with 10 additions and 15 deletions
@@ -108,7 +108,7 @@ objects:
spec:
containers:
- env:
- name: POD_IP
- name: PATRONI_KUBERNETES_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
@@ -108,7 +108,7 @@ objects:
spec:
containers:
- env:
- name: POD_IP
- name: PATRONI_KUBERNETES_POD_IP
valueFrom:
fieldRef:
apiVersion: v1