Repository navigation
[refactor][doc] Improve the IA of the Kubernetes chapter and merge into the deployment chapter - #18015
Conversation
|
@tjiuming can you pls review this PR from a tech perspective? Thank you. |
tisonkun
left a comment
There was a problem hiding this comment.
LGTM. Thanks for sorting out these docs!
|
@momo-jun sorry, I missed the PR, and I'm not familiar with helm chart |
|
Perhaps @ericsyh can give a review or specify someone who is familiar with these topics? |
|
@zymap @mattisonchao can you pls review this PR from a technical perspective? Thank you. |
|
|
||
| ## 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). |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| ## Install dependent charts | ||
|
|
||
| ### Install local storage provisioner | ||
| #### Install local storage provisioner |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
@ericsyh It also has a counterpart in the Persistence section and even a parameter named local_storage. Should this part be updated as well?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@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?
There was a problem hiding this comment.
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:
- https://github.com/rancher/local-path-provisioner
- https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner, actually it is the upstream of
streamnative/local-storage-provisioner
There was a problem hiding this comment.
Thanks for the clarification. The section has been updated. PTAL.
|
I think there are some inaccurate descriptions on the |
|
@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. |
| repository: apachepulsar/pulsar-all | ||
| tag: 2.5.0 | ||
| tag: @pulsar:version@ | ||
| prometheus: |
There was a problem hiding this comment.
@michaeljmarshall I believe you have updated many of these tags and repositories.
There was a problem hiding this comment.
@michaeljmarshall did you see any updates to be addressed in these docs following the changes you made to the helm chart?
There was a problem hiding this comment.
ping @michaeljmarshall
Since Pulsar Helm Charts 3.0.0 has been released, could you review this part of documents?
There was a problem hiding this comment.
This section looks good to me.
michaeljmarshall
left a comment
There was a problem hiding this comment.
Looks good other than a few comments.
| repository: apachepulsar/pulsar-all | ||
| tag: 2.5.0 | ||
| tag: @pulsar:version@ | ||
| prometheus: |
There was a problem hiding this comment.
This section looks good to me.
| 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 |
There was a problem hiding this comment.
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.
| @@ -330,19 +323,15 @@ cd pulsar-helm-chart | |||
|
|
|||
| The `prepare_helm_release` creates the following resources: | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@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
left a comment
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
FYI redirections should follow this pattern #18415 (comment).
There was a problem hiding this comment.
Thanks for the reminder. Done :)
tisonkun
left a comment
There was a problem hiding this comment.
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.
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.

Ref: Pre-discussion.
Modifications
Verifying this change
Overview

Prepare

Deploy

Upgrade

Documentation
docdoc-requireddoc-not-neededdoc-complete