Skip to content

Instantly share code, notes, and snippets.

@ipiyer
Last active January 22, 2017 04:07
Show Gist options
  • Select an option

  • Save ipiyer/869b4c17945d250d60284185b009821b to your computer and use it in GitHub Desktop.

Select an option

Save ipiyer/869b4c17945d250d60284185b009821b to your computer and use it in GitHub Desktop.
postgres kubernetes gcp
apiVersion: v1
kind: Pod
metadata:
name: pg
labels:
name: pg
spec:
securityContext:
fsGroup: 999
containers:
- image: postgres:9.5
name: postgres
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: test-volume
volumes:
- name: test-volume
# This GCE PD must already exist.
gcePersistentDisk:
pdName: postgres-disk
fsType: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment