{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/postgres/issues/348","repository_url":"https://api.github.com/repos/docker-library/postgres","labels_url":"https://api.github.com/repos/docker-library/postgres/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/postgres/issues/348/comments","events_url":"https://api.github.com/repos/docker-library/postgres/issues/348/events","html_url":"https://github.com/docker-library/postgres/pull/348","id":261448804,"number":348,"title":"Don't smash the database on every restart","user":{"login":"israelshirk","id":1100234,"avatar_url":"https://avatars2.githubusercontent.com/u/1100234?v=4","gravatar_id":"","url":"https://api.github.com/users/israelshirk","html_url":"https://github.com/israelshirk","followers_url":"https://api.github.com/users/israelshirk/followers","following_url":"https://api.github.com/users/israelshirk/following{/other_user}","gists_url":"https://api.github.com/users/israelshirk/gists{/gist_id}","starred_url":"https://api.github.com/users/israelshirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/israelshirk/subscriptions","organizations_url":"https://api.github.com/users/israelshirk/orgs","repos_url":"https://api.github.com/users/israelshirk/repos","events_url":"https://api.github.com/users/israelshirk/events{/privacy}","received_events_url":"https://api.github.com/users/israelshirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-28T20:22:14Z","updated_at":"2017-09-28T21:18:17Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/docker-library/postgres/pulls/348","html_url":"https://github.com/docker-library/postgres/pull/348","diff_url":"https://github.com/docker-library/postgres/pull/348.diff","patch_url":"https://github.com/docker-library/postgres/pull/348.patch"},"body":"Per the bash docs, '-s' would be nonzero if the file is not zero-size.  http://tldp.org/LDP/abs/html/fto.html"},"comment":{"url":"https://api.github.com/repos/docker-library/postgres/issues/comments/332966818","html_url":"https://github.com/docker-library/postgres/pull/348#issuecomment-332966818","issue_url":"https://api.github.com/repos/docker-library/postgres/issues/348","id":332966818,"user":{"login":"israelshirk","id":1100234,"avatar_url":"https://avatars2.githubusercontent.com/u/1100234?v=4","gravatar_id":"","url":"https://api.github.com/users/israelshirk","html_url":"https://github.com/israelshirk","followers_url":"https://api.github.com/users/israelshirk/followers","following_url":"https://api.github.com/users/israelshirk/following{/other_user}","gists_url":"https://api.github.com/users/israelshirk/gists{/gist_id}","starred_url":"https://api.github.com/users/israelshirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/israelshirk/subscriptions","organizations_url":"https://api.github.com/users/israelshirk/orgs","repos_url":"https://api.github.com/users/israelshirk/repos","events_url":"https://api.github.com/users/israelshirk/events{/privacy}","received_events_url":"https://api.github.com/users/israelshirk/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T21:18:17Z","updated_at":"2017-09-28T21:18:17Z","author_association":"NONE","body":"Kubernetes on GCE...  Digging into it more, something is genuinely wrong here.  Here's my deployment:\r\n\r\n```yaml\r\napiVersion: extensions/v1beta1\r\nkind: Deployment\r\nmetadata:\r\n  labels:\r\n    name: postgresql\r\n  name: postgresql\r\n  namespace: default\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      name: postgresql\r\n  strategy:\r\n    rollingUpdate:\r\n      maxSurge: 1\r\n      maxUnavailable: 1\r\n    type: RollingUpdate\r\n  template:\r\n    metadata:\r\n      labels:\r\n        name: postgresql\r\n      name: postgresql\r\n    spec:\r\n      containers:\r\n      - env:\r\n        - name: DB_USER\r\n          valueFrom:\r\n            secretKeyRef:\r\n              key: DB_USER\r\n              name: gitlab-secrets\r\n        - name: DB_PASS\r\n          valueFrom:\r\n            secretKeyRef:\r\n              key: DB_PASS\r\n              name: gitlab-secrets\r\n        - name: DB_NAME\r\n          valueFrom:\r\n            secretKeyRef:\r\n              key: DB_NAME\r\n              name: gitlab-secrets\r\n        image: zerrtech/postgres:latest\r\n        imagePullPolicy: Always\r\n        livenessProbe:\r\n          exec:\r\n            command:\r\n            - pg_isready\r\n            - -h\r\n            - localhost\r\n            - -U\r\n            - postgres\r\n          failureThreshold: 3\r\n          initialDelaySeconds: 30\r\n          periodSeconds: 10\r\n          successThreshold: 1\r\n          timeoutSeconds: 5\r\n        name: postgresql\r\n        ports:\r\n        - containerPort: 5432\r\n          name: postgres\r\n          protocol: TCP\r\n        readinessProbe:\r\n          exec:\r\n            command:\r\n            - pg_isready\r\n            - -h\r\n            - localhost\r\n            - -U\r\n            - postgres\r\n          failureThreshold: 3\r\n          initialDelaySeconds: 5\r\n          periodSeconds: 10\r\n          successThreshold: 1\r\n          timeoutSeconds: 1\r\n        terminationMessagePath: /dev/termination-log\r\n        terminationMessagePolicy: File\r\n        volumeMounts:\r\n        - mountPath: /var/lib/postgresql\r\n          name: data\r\n      restartPolicy: Always\r\n      terminationGracePeriodSeconds: 30\r\n      volumes:\r\n      - name: data\r\n        persistentVolumeClaim:\r\n          claimName: postgresql-data\r\n```"}}
{"actor":{"display_login":"israelshirk"}}