-
Notifications
You must be signed in to change notification settings - Fork 101
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
Change wrap app/db PV definitions into kube templates #224
Conversation
Oh I made the spec tests upset. |
I ran the rspec locally, I think I fixed the lint. Silly double quoting. |
@tbielawa @carbonin I believe those default sizes are reasonable for a standard deployment (probably oversized for dev environments). I guess eventually we could revisit them, should be easy to adjust if needed. Question regarding the templated PV creation : Will the NFS shares now be configured automagically by OpenShift when the template is created/processed? Or this is something that still has to be done manually by Admin? |
@fbladilo said
Using the openshift-ansible
Note: in the PR there are still some hard-coded hostnames. I'm going to fix those to be standardized today Using the role or not, this project will need a README update to describe how to create the actual PVs using the proposed templates in this PR. Method 1 and Method 2 (described in the OP) should be a good starting point |
@tbielawa 👍 Yep will certainly will need to adjust our instructions on README, looks like an improvement. I like option 2 with a single pass modifying default parameters. |
I'm not very concerned with the descriptions, I think what you have here is fine.
I think the same parameter name would be more user friendly. Maybe just Also, @tbielawa would you mind updating the README as a part of this patch? The explanation that you have in your description seems great. |
@carbonin no problem to all comments |
8eb821e
to
5ba9b86
Compare
This fine?
|
README.md
Outdated
miq-pv02 5Gi RWO Recycle Available 19s | ||
NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE | ||
miq-app 4Gi RWO Retain Bound manageiq/manageiq-server-manageiq-0 1d | ||
miq-db 10Gi RWO Retain Bound manageiq/manageiq-postgresql 1d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After PV creation, but before deploying the app I wouldn't expect these to be Bound
Whoops. True. That's a copy/paste from a deployed instance.
…On Mon, Sep 25, 2017 at 9:43 AM, Nick Carboni ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In README.md
<#224 (comment)>
:
> ```bash
$ oc get pv
-NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM REASON AGE
-miq-pv01 15Gi RWO Recycle Available 30s
-miq-pv02 5Gi RWO Recycle Available 19s
+NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE
+miq-app 4Gi RWO Retain Bound manageiq/manageiq-server-manageiq-0 1d
+miq-db 10Gi RWO Retain Bound manageiq/manageiq-postgresql 1d
After PV creation, but before deploying the app I wouldn't expect these to
be Bound
|
5ba9b86
to
e648adc
Compare
@carbonin fixed that for ya |
Checked commit tbielawa@e648adc with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for the patch @tbielawa
This is a follow up to #222 RFE/Question - Turn PV examples into templates
Description
The current docs describe creating the required PVs in terms of simply editing the provided app/db examples with the required NFS paths. This change turns creating PVs into a no-editing-required process by wrapping the PV objects in kube templates.
Usage
Using a template in this PR is pretty simple! No more editing required
Template Parameters
DB_PV_SIZE
- Defaults to the recommended PV size for the DB templateAPP_PV_SIZE
- ** Defaults to the recommended PV size for the app templateBASE_PATH
- Defaults to/exports
NFS_HOST
- No Default - Value must be provided when processing/creatingMethod 1 - Create Template, Process and Create Later
Method 2 - Process Template and Create in one pass
The current descriptions don't look like the rest of the manageiq descriptions, probably want to re-word these
Questions
spec.capacity.storage
parameters:APP_PV_SIZE
vs.DB_PV_SIZE
. Do you want those to stay different, or do you want them to be the same, i.e., unify on a single name likeMIQ_PV_SIZE
or something?