Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Persistent Volume (Claim) for Postgresql data #2

Open
hnarayanan opened this issue Mar 20, 2016 · 0 comments
Open

Introduce Persistent Volume (Claim) for Postgresql data #2

hnarayanan opened this issue Mar 20, 2016 · 0 comments
Labels

Comments

@hnarayanan
Copy link
Owner

From older notes:

  • (WIP!) Setup a persistent store for the database. In this example we're
    going to be using Persistent Disks from Google Cloud Platform. In
    order to make one of these, we create a disk and format it (using an
    instance that's temporarily created just for this purpose).
gcloud compute disks create pg-data-disk --size 50GB
gcloud compute instances create pg-disk-formatter
gcloud compute instances attach-disk pg-disk-formatter --disk pg-data-disk
gcloud compute config-ssh
ssh pg-disk-formatter.$GCP_PROJECT
    sudo mkfs.ext4 -F /dev/sdb
    exit
gcloud compute instances detach-disk pg-disk-formatter --disk pg-data-disk
gcloud compute instances delete pg-disk-formatter
- PostgreSQL Persistent Volume (Claims)
  kubectl create -f kubernetes/database/persistent-volume.yaml
  kubectl get pv
  kubectl create -f kubernetes/database/persistent-volume-claim.yaml
  kubectl get pvc
@hnarayanan hnarayanan added the bug label Mar 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant