-
Notifications
You must be signed in to change notification settings - Fork 253
example.md: reduce the contents which are present in hostpath deployment example #125
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
example.md: reduce the contents which are present in hostpath deployment example #125
Conversation
|
/assign @msau42 |
book/src/example.md
Outdated
| [HostPath](https://github.com/kubernetes-csi/drivers/tree/master/pkg/hostpath) | ||
| can be used to provision local storage in a single node test. This | ||
| section shows how to deploy and use that driver in Kubernetes. | ||
| [HostPath](https://github.com/kubernetes-csi/csi-driver-host-path) |
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.
"The Hostpath CSI driver is a simple sample driver that provisions a directory on the host. It can be used as an example to get started writing a driver, however it is not meant for production use."
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.
yes, I will replace the sentence, and overall I think the first part can be simplified. The header "Deployment" should go away, and remaining sentences get reduced and form one chapter
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.
it may be better idea to link to deploy/ directory instead of deployment script, as the whole set of files under deploy/ forms this example
book/src/example.md
Outdated
| can be used to provision local storage in a single node test. This | ||
| section shows how to deploy and use that driver in Kubernetes. | ||
| [HostPath](https://github.com/kubernetes-csi/csi-driver-host-path) | ||
| can be used to provision local storage. The deployment example there |
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.
"deployment example there": can you link to the actual page?
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.
I will make "deployment example there" to be a link to actual deployment script, if that's what you mean
book/src/example.md
Outdated
| > ``` | ||
| ### Deploy driver-registrar and hostpath CSI plugin in DaemonSet pod | ||
| CRDs are created optionally `CSIDriverRegistry` and `CSINodeInfo`: |
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.
I don't know if we need this anymore considering we're getting rid of the CRDs in 1.14.
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.
Let's remove CRD stmt from here, it does not add much value, glimpse into deployment example shows CRDs are inside if stmt, thus optional
09af201 to
b55adec
Compare
|
force-pushed latest state. Link to example now points to hostpath deploy/ dir. Next:
|
|
liveness probe deployment added as PR#27 in hostpath repo |
book/src/example.md
Outdated
| > csi-hostpath-provisioner-0 1/1 Running 0 56s | ||
| > csi-hostpathplugin-4k7hk 2/2 Running 0 117s | ||
| > ``` | ||
| The CSI sidecar apps are going to connect to the CSI driver, therefore starting it first helps avoid timeouts and intermittent container restarts |
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.
I'm not sure what this sentence means and how it translates into something you can do in your Pod specs. Can you clarify?
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.
Put the CSI driver container at the top of the list of containers in the pod, if that pod also contains the sidecards.
It's less of an issue now because we improved the connection behavior of the sidecars, but previously we've seen sidecars time out in their connection attempt because the CSI driver was started after them and image pulling took too long. Having said that, I still think it's a good advice.
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.
This is an advice about best-practices. Thinking about it some more, I now suggest that we remove the entire sentence. It doesn't belong into the example page.
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.
I deleted that sentence and pushed new state
book/src/example.md
Outdated
| > Events: <none> | ||
| > ``` | ||
| ## Snapshot support |
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.
@xing-yang do you want the snapshot example here, or should it go in the snapshot page and/or the snapshotter repo?
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.
I would put it into the csi-driver-host-path repo.
- this page: can get out of sync with the actual example(s) - can be more than one, depending on the Kubernetes version
- snapshot page: same issue
- snapshotter repo: doesn't have a complete deployment, and I don't think we should add one there
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.
We discussed this today in the Kubernetes-CSI meeting and agreed to use the csi-driver-host-path repo.
b55adec to
33c7b81
Compare
|
The current PR state has addressed latest comments, right.
|
This page was mostly repeating what is written in hostpath deployment example. We can point to hostpath and delete the outdated deployment examples here.
33c7b81 to
df4ab3e
Compare
book/src/example.md
Outdated
| - `--connection-timeout` - specifies the timeout duration of waiting for CSI driver socket in seconds. (default 30s) | ||
|
|
||
| - `--health-port` - specifies the TCP ports for listening healthz requests (default "9808") | ||
| The example deployment includes livenessprobe side-container provided by the CSI community, using configuration derived from [using-livenessprobe](https://github.com/kubernetes-csi/livenessprobe#using-livenessprobe) from [kubernetes-csi/livenessprobe](https://github.com/kubernetes-csi/livenessprobe) |
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.
I re-used sentence from original, but the double "from" feels complicated here.
The second "from" just repeats the repository part of first "from", so what about we delete 2nd as it does not add new information.
Adding 2nd link would make sense if it pointed to some other repository.
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.
supported by not from @pohly, I deleted 2nd "from" part and force pushed
Livenessprobe deployment was added to hostpath example, so we replace detailed description here with a note about it.
df4ab3e to
970ee44
Compare
|
I created a kubernetes-csi/csi-driver-host-path#31 that makes next step, migrates rest of snapshot example from here to hostpath deployment example |
|
kubernetes-csi/csi-driver-host-path#31 was merged, so I pushed a new state here that replaces snapshot example contents with one sentence (please check it). Note that there is now the last sentence "please check the Troubleshooting page" which has broken link. |
|
Please remove the sentence "Deployment has been tested with Kubernetes v1.13". This page no longer documents that.
The case must be fixed ( |
41820e4 to
1aa545a
Compare
|
1.13 sentence deleted and case in troubleshooting fixed (another fix is .md instead of .html), pushed. |
The |
1aa545a to
47e10f6
Compare
|
oh, I naively hoped I can verify link here as well. Reverted- |
book/src/example.md
Outdated
|
|
||
| > ## *This page is out-of-date and under active development.* | ||
| The [Hostpath CSI driver](https://github.com/kubernetes-csi/csi-driver-host-path) is a simple sample driver that provisions a directory on the host. It can be used as an example to get started writing a driver, however it is not meant for production use. | ||
| The [deployment example](https://github.com/kubernetes-csi/csi-driver-host-path/tree/master/deploy) shows how to deploy and use that driver in Kubernetes. |
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.
Sorry, only thought of this now: https://github.com/kubernetes-csi/csi-driver-host-path#deployment is a better link, because it has some actual documentation.
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.
good idea! pointing to deployment chapter is more user-friendly than pointer to directory
47e10f6 to
353e061
Compare
pohly
left a comment
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.
/lgtm
Please remove the "WIP:" tag in the title.
book/src/example.md
Outdated
| This example deployment uses the original RBAC rule files that are | ||
| maintained together with those sidecar apps and deploys into the | ||
| default namespace. | ||
| The example deployment includes livenessprobe side-container provided by the CSI community, using configuration derived from [using-livenessprobe](https://github.com/kubernetes-csi/livenessprobe#using-livenessprobe). |
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.
Do we need to explicitly call out liveness probe and snapshot? We're not calling out any of the other sidecars.
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.
current structure is result of mechanically replacing one chapter with one-two sentences about it. Other sidecars did not have dedicated chapters.
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.
let's leave them out then. The new docs page has separate pages for each of the sidecars that explain what they do.
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.
we leave out livenessprobe and snapshot sentences, and we keep RBAC chapter?
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.
yup I think that is fine
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.
pushed it. The remaining text is not long :-)
Snapshot deployment was added to hostpath example, so we replace detailed description here with a note about it.
353e061 to
b90fe17
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msau42, okartau The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This page was mostly repeating (older version) of what is written in hostpath
deployment example. We can point to hostpath and delete
the outdated deployment examples here.
Resolves: #124