Skip to content

Document writing portable config with storage.#1311

Merged
erictune merged 1 commit intokubernetes:masterfrom
erictune:defstoclass
Sep 27, 2016
Merged

Document writing portable config with storage.#1311
erictune merged 1 commit intokubernetes:masterfrom
erictune:defstoclass

Conversation

@erictune
Copy link
Copy Markdown
Contributor

@erictune erictune commented Sep 26, 2016

This change is Reviewable

@erictune
Copy link
Copy Markdown
Contributor Author

@viglesiasce you want this

@thockin we just talked about this an hour ago

@jsafrane @saad-ali we have talked about this issue before.

@viglesiasce
Copy link
Copy Markdown
Contributor

Thanks so much @erictune!! Looks great!


## Writing Portable Configuration

When writing configuration templates or examples that need persistent storage
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little clearer if you reverse the order in this sentence.

"If you're writing configuration templates or examples that run on a wide range of clusters and need persistent storage, we recommend that you use the following pattern:"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- Do not include PersistentVolume objects in the config, since the user instantiating the config may not have
permission to create PersistentVolumes.
- Give the user the option of providing a storage class name when instantating the template.
- If the user provides a storage class name, and the cluster is version 1.4 or newer, put that value into the `volume.beta.kubernetes.io/storage-class` annotation of the PVC.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These next two bullets, related to storage class names, should be sub-bullets of the previous one (line 411).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@thockin
Copy link
Copy Markdown
Member

thockin commented Sep 26, 2016

tech lgtm

@erictune
Copy link
Copy Markdown
Contributor Author

I addressed the doc reviewers comments so marking this Doc LGTM.

@erictune
Copy link
Copy Markdown
Contributor Author

Github Reviews doesn't seem to understand that I have addressed the review comments.

@erictune erictune merged commit 8addad0 into kubernetes:master Sep 27, 2016
@erictune erictune deleted the defstoclass branch November 16, 2016 17:33
mikutas pushed a commit to mikutas/k8s-website that referenced this pull request Sep 22, 2022
The URL for test app `trafficsplit` is wrong. Fixed.

Signed-off-by: Vincent Yin <vincent.yin@narvar.com>
Okabe-Junya pushed a commit to Okabe-Junya/website that referenced this pull request Dec 4, 2023
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

Successfully merging this pull request may close these issues.

6 participants