-
-
Save ipiyer/869b4c17945d250d60284185b009821b to your computer and use it in GitHub Desktop.
postgres kubernetes gcp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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