Skip to content

Conversation

@okartau
Copy link
Contributor

@okartau okartau commented Mar 7, 2019

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

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 7, 2019
@k8s-ci-robot k8s-ci-robot requested review from lpabon and msau42 March 7, 2019 20:09
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 7, 2019
@saad-ali
Copy link
Member

saad-ali commented Mar 7, 2019

/assign @msau42

[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)
Copy link
Collaborator

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."

Copy link
Contributor Author

@okartau okartau Mar 9, 2019

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

Copy link
Contributor Author

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

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
Copy link
Collaborator

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?

Copy link
Contributor Author

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

> ```
### Deploy driver-registrar and hostpath CSI plugin in DaemonSet pod
CRDs are created optionally `CSIDriverRegistry` and `CSINodeInfo`:
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@okartau okartau force-pushed the update-hostpath-in-example branch from 09af201 to b55adec Compare March 9, 2019 12:48
@okartau
Copy link
Contributor Author

okartau commented Mar 9, 2019

force-pushed latest state. Link to example now points to hostpath deploy/ dir.
What do you think, do we need to keep stmt "The CSI sidecar apps are going to connect..." ?

Next:

  • liveness-probe deployment example to be moved from here to hostpath deployment script
    (needs deployment verification, I will try)
  • remaining snapshot example should be moved there as well
  • then those parts deleted from here

@okartau
Copy link
Contributor Author

okartau commented Mar 10, 2019

liveness probe deployment added as PR#27 in hostpath repo

> 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
Copy link
Collaborator

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?

Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Contributor Author

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

> Events: <none>
> ```
## Snapshot support
Copy link
Collaborator

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?

Copy link
Collaborator

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

Copy link
Collaborator

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.

@okartau okartau force-pushed the update-hostpath-in-example branch from b55adec to 33c7b81 Compare March 27, 2019 20:37
@okartau
Copy link
Contributor Author

okartau commented Mar 27, 2019

The current PR state has addressed latest comments, right.
Next steps to get this moving further, a plan to complete this PR using isolated changes steps:

  • get PR#27 in hostpath repo merged, adding liveness-probe in deploy example there
  • after above merged, I will delete liveness-probe part in this PR here
  • then we can deal with moving remaining snapshot example parts from here into hostpath example as well, in similar fashion. i.e. preparing PR there, merging it, then deleting respective parts in this PR here.

This page was mostly repeating what is written in hostpath
deployment example. We can point to hostpath and delete
the outdated deployment examples here.
@okartau okartau force-pushed the update-hostpath-in-example branch from 33c7b81 to df4ab3e Compare March 28, 2019 09:21
- `--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)
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.
@okartau okartau force-pushed the update-hostpath-in-example branch from df4ab3e to 970ee44 Compare March 29, 2019 08:23
@okartau
Copy link
Contributor Author

okartau commented Mar 29, 2019

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

@okartau
Copy link
Contributor Author

okartau commented Apr 2, 2019

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.
Do we want to have such link there (should fix it) or can we just delete this sentence now,
as we have moved away actual possibly trouble-creating parts from this page

@pohly
Copy link
Collaborator

pohly commented Apr 2, 2019

Please remove the sentence "Deployment has been tested with Kubernetes v1.13". This page no longer documents that.

Note that there is now the last sentence "please check the Troubleshooting page" which has broken link.

The case must be fixed (Troubleshooting.html -> troubleshooting.html). The page itself isn't very useful anymore, but let's fix the link and then decide later whether that page still makes sense.

@okartau okartau force-pushed the update-hostpath-in-example branch 2 times, most recently from 41820e4 to 1aa545a Compare April 2, 2019 10:09
@okartau
Copy link
Contributor Author

okartau commented Apr 2, 2019

1.13 sentence deleted and case in troubleshooting fixed (another fix is .md instead of .html), pushed.
(most of) troubleshooting file entries are getting old and/or are not relevant?

@pohly
Copy link
Collaborator

pohly commented Apr 2, 2019

another fix is .md instead of .html

The .html suffix was correct, it's what we need in the actual site (https://kubernetes-csi.github.io/docs/example.html). Please revert to .html.

@okartau okartau force-pushed the update-hostpath-in-example branch from 1aa545a to 47e10f6 Compare April 2, 2019 11:18
@okartau
Copy link
Contributor Author

okartau commented Apr 2, 2019

oh, I naively hoped I can verify link here as well. Reverted-


> ## *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.
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@okartau okartau force-pushed the update-hostpath-in-example branch from 47e10f6 to 353e061 Compare April 2, 2019 11:37
Copy link
Collaborator

@pohly pohly left a 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.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 2, 2019
@okartau okartau changed the title WIP: example.md: reduce the contents which are present in hostpath deployment example example.md: reduce the contents which are present in hostpath deployment example Apr 2, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 2, 2019
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).
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Collaborator

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

Copy link
Contributor Author

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.
@okartau okartau force-pushed the update-hostpath-in-example branch from 353e061 to b90fe17 Compare April 3, 2019 18:43
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2019
@msau42
Copy link
Collaborator

msau42 commented Apr 3, 2019

/lgtm
/approve
Thank you!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 3, 2019
@k8s-ci-robot k8s-ci-robot merged commit 110683a into kubernetes-csi:master Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants