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

Move Postgres to Cindervolume or similar #22

Open
andersla opened this issue Jun 18, 2018 · 1 comment
Open

Move Postgres to Cindervolume or similar #22

andersla opened this issue Jun 18, 2018 · 1 comment

Comments

@andersla
Copy link
Contributor

Put postgres data on a Cindervolume or similar to improve postgres speed

@sneumann
Copy link
Member

First we need to request a second volume in the terraform part, say 5GB,

Then we define a PV as in pv_cinder.yaml that has to go into the helm chart of the
postgres service:

apiVersion: "v1"
kind: "PersistentVolume"
metadata:
  name: "cinder-jenkins" 
spec:
  capacity:
    storage: "10Gi" 
  accessModes:
    - "ReadWriteOnce"
  cinder: 
    fsType: "ext4" 
volumeID: "a2f...48173e"

The volumeID must be passed on from Terraform.

K8S will make sure the physical mount will follow the postgres pod in case it is moved around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants