Skip to content

[refactor][doc] Improve the IA of the Kubernetes chapter and merge into the deployment chapter - #18015

Merged
tisonkun merged 15 commits into
apache:masterfrom
momo-jun:K8s-deployment
Nov 11, 2022
Merged

tisonkun merged 15 commits into
apache:masterfrom
momo-jun:K8s-deployment

Conversation

@momo-jun

@momo-jun momo-jun commented Oct 12, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

The Kubernetes (Helm) chapter mainly talks about the deployment. There are many unnecessary Xrefs, for example, the deployment topic only provides an Xref to the installation topic, and then links to the deployment using helm. In addition, many topics inside also have inappropriate content chunks, for example, the major content of the Install and Required Tools topics belong to the Prepare topic.

This PR is to re-sort the information and incorporate the content into the Deployment chapter with a lean structure.

The content mapping is as follows.
image

Ref: Pre-discussion.

Modifications

  1. Relocate the K8S content to the Deployment chapter according to the above content mapping.
  2. Re-org the Overview/Prepare/Deploy/Upgrade topics.
  3. Map the content in the original Install/Tools topics into the Deploy/Prepare topics.
  4. Redirect the original Overview/Install/Tools topics to the new topics inside the Deployment chapter.
  5. Refresh the sidebar, required version numbers of tools and components, and internal reference links.
  6. Add a deprecated notice to the old "Get started with Kubernetes" topic.

Verifying this change

Overview
image

Prepare
image

Deploy
image

Upgrade
image

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@momo-jun momo-jun mentioned this pull request Oct 12, 2022
1 of 2 tasks
@github-actions github-actions Bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Oct 12, 2022
@momo-jun
momo-jun marked this pull request as ready for review October 13, 2022 01:31
@momo-jun momo-jun self-assigned this Oct 13, 2022
Comment thread site2/docs/helm-deploy.md Resolved
Comment thread site2/docs/helm-deploy.md Resolved
Comment thread site2/docs/helm-deploy.md Resolved
@Technoboy- Technoboy- added this to the 2.12.0 milestone Oct 14, 2022
@momo-jun

Copy link
Copy Markdown
Contributor Author

@tjiuming can you pls review this PR from a tech perspective? Thank you.
//cc @DaveDuggins for editorial review.

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks for sorting out these docs!

@tjiuming

Copy link
Copy Markdown
Contributor

@momo-jun sorry, I missed the PR, and I'm not familiar with helm chart

@tisonkun

Copy link
Copy Markdown
Member

Perhaps @ericsyh can give a review or specify someone who is familiar with these topics?

@momo-jun

Copy link
Copy Markdown
Contributor Author

@zymap @mattisonchao can you pls review this PR from a technical perspective? Thank you.

Comment thread site2/docs/helm-deploy.md Resolved

@zymap zymap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread site2/docs/helm-prepare.md Resolved
Comment thread site2/docs/helm-prepare.md Resolved
Comment thread site2/docs/helm-prepare.md Resolved
Comment thread site2/docs/deploy-kubernetes.md Outdated

## What's Next?

* To get up and running with Pulsar Helm chart as fast as possible for Proof of Concept (PoC) in a **non-production** use case, see the [quick start guide](getting-started-helm.md).

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.

I suggest removing this "quick start guide" cause https://pulsar.apache.org/docs/getting-started-helm just shows a sample of how to install pulsar-helm-chart on minikube which is very similar to the formal installation https://pulsar.apache.org/docs/helm-deploy. I'd like to remove the "quick start" and just keep the formal installation.

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.

I think it's okay to leave the link here as a quick start option and it's up to the readers to the next move.

Comment thread site2/docs/helm-deploy.md Outdated
## Install dependent charts

### Install local storage provisioner
#### Install local storage provisioner

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.

I think this is not very accurate cause pulsar-helm-chart needs a storage provisioner but not must be a local storage provisioner. Users just need to create storage class for their k8s cluster and config the storage class name in https://github.com/apache/pulsar-helm-chart/blob/master/charts/pulsar/values.yaml#L361

@momo-jun momo-jun Oct 20, 2022 •

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.

@ericsyh It also has a counterpart in the Persistence section and even a parameter named local_storage. Should this part be updated as well?

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.

Is create storage class and config the storage class an alternative way to install the storage provisioned compared to the recommended cmd in the doc, or a subsequent step?

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.

It also has a counterpart in the Persistence section and even a parameter named local_storage. Should this part be updated as well?

Yeah, I think this part should be updated also. local_storage config is for the streamnative/local-storage-provisioner.

Is create storage class and config the storage class an alternative way to install the storage provisioned compared to the recommended cmd in the doc, or a subsequent step?

Creating a storage class and config the storage class is a more general way for storage provisioned. Actually, helm install pulsar-storage-provisioner streamnative/local-storage-provisioner is also to install local-storage-provisioner in kubernetes as a storage class.

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.

@ericsyh sorry for my late response. After a revisit, I understand this Install local storage provisioner section as an optional task to perform only if users want to use the local persistent volumes as the persistent storage. Otherwise, they don't need to install any local storage provisioner. Does it make sense to understand this way?

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.

Somehow is correct but I don't think it's an optional task because there is no binding relationship between using local persistent volumes and installing streamnative/local-storage-provisioner.

If I want to deploy pulsar-helm-chart on k8s with local persistent volumes, there are some provisioners to choose from:

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.

Thanks for the clarification. The section has been updated. PTAL.

@ericsyh

ericsyh commented Oct 20, 2022 •

Copy link
Copy Markdown
Contributor

I think there are some inaccurate descriptions on the pulsar-helm-chart documents. I left comments on them.

@dave2wave

Copy link
Copy Markdown
Member

@michaeljmarshall Is working through updating the Apache Pulsar Helm Chart and has started a VOTE on a release. Clearly once that is done some of these changes will need to be revisited.

Comment thread site2/docs/helm-deploy.md Outdated
repository: apachepulsar/pulsar-all
tag: 2.5.0
tag: @pulsar:version@
prometheus:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@michaeljmarshall I believe you have updated many of these tags and repositories.

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.

@michaeljmarshall did you see any updates to be addressed in these docs following the changes you made to the helm chart?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ping @michaeljmarshall

Since Pulsar Helm Charts 3.0.0 has been released, could you review this part of documents?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This section looks good to me.

Comment thread site2/docs/helm-deploy.md Resolved

@ericsyh ericsyh left a comment

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.

LGTM

@michaeljmarshall michaeljmarshall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good other than a few comments.

Comment thread site2/docs/helm-deploy.md Outdated
repository: apachepulsar/pulsar-all
tag: 2.5.0
tag: @pulsar:version@
prometheus:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This section looks good to me.

Comment thread site2/docs/helm-deploy.md Outdated
Comment on lines 153 to 159
repository: prom/prometheus
tag: v1.6.3
tag: v2.17.2
pullPolicy: IfNotPresent
grafana:
repository: streamnative/apache-pulsar-grafana-dashboard-k8s
tag: 0.0.4
tag: 0.0.16
pullPolicy: IfNotPresent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We no longer deploy these components this way. We can remove this section.

Configuration for prometheus and grafana is governed by https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack. It just needs to be in the kube-prometheus-stack: section of the values.yaml file.

Comment thread site2/docs/helm-deploy.md
@@ -330,19 +323,15 @@ cd pulsar-helm-chart

The `prepare_helm_release` creates the following resources:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This script was not maintained, so it was removed from the README here apache/pulsar-helm-chart#324. There are appropriate instructions in that PR that could be copied to this section. The current README in https://github.com/apache/pulsar-helm-chart should work, too.

@momo-jun momo-jun Nov 7, 2022 •

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.

@michaeljmarshall thanks for the information. This script still exists in the Uninstall section of the README file.
The Get started topic also introduces this script to create secrets. If we don't recommend users run it, what's the alternative used to create secrets?

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Generally look good.

Please fix the redirections and this will be ready to merge :)


Install Apache Pulsar on Kubernetes with the official Pulsar Helm chart.
````mdx-code-block
import {Redirect} from '@docusaurus/router';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FYI redirections should follow this pattern #18415 (comment).

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.

Thanks for the reminder. Done :)

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Merging...

@michaeljmarshall for #18015 (comment), I think it's not a regression and perhaps it can be done alongside when you update Pulsar Helm Chart README.md. As @momo-jun commented, there are still sevral remaining references.

@tisonkun
tisonkun merged commit f745c03 into apache:master Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants