Skip to content
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

[fix][doc] fix the Helm Getting Started Guide to make pulsar-manager work #679

Merged
merged 2 commits into from
Aug 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions docs/getting-started-helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ We use [Minikube](https://minikube.sigs.k8s.io/docs/start/) in this quick start
pulsar-mini apache/pulsar
```

:::tip

Make sure the `values-minikube.yaml` file contains the following lines:

```yaml
pulsar_manager:
configData:
ENV_SPRING_CONFIGURATION_FILE: "/pulsar-manager/pulsar-manager/application.properties"
SPRING_CONFIGURATION_FILE: "/pulsar-manager/pulsar-manager/application.properties"
PULSAR_MANAGER_OPTS: " -Dlog4j2.formatMsgNoLookups=true"
```

:::

5. Check the status of all pods.

```bash
Expand Down Expand Up @@ -340,22 +354,36 @@ Then you can proceed with the following steps:

[Pulsar Manager](administration-pulsar-manager.md) is a web-based GUI management tool for managing and monitoring Pulsar.

1. By default, the `Pulsar Manager` is exposed as a separate `LoadBalancer`. You can open the Pulsar Manager UI using the following command:
1. To create a superuser account, connect to the pulsar-manager pod and create the account:

```bash
kubectl exec -it YOUR_PULSAR_MANAGER_POD_NAME -n pulsar -- /bin/bash
CSRF_TOKEN=$(curl http://localhost:7750/pulsar-manager/csrf-token)
curl \
-H "X-XSRF-TOKEN: $CSRF_TOKEN" \
-H "Cookie: XSRF-TOKEN=$CSRF_TOKEN;" \
-H 'Content-Type: application/json' \
-X PUT http://localhost:7750/pulsar-manager/users/superuser \
-d '{"name": "pulsar", "password": "pulsar", "description": "test", "email": "[email protected]"}'
```

2. By default, the `Pulsar Manager` is exposed as a separate `LoadBalancer`. You can open the Pulsar Manager UI using the following command:

```bash
minikube service -n pulsar pulsar-mini-pulsar-manager
```

2. The Pulsar Manager UI will be open in your browser. You can use the username `pulsar` and password `pulsar` to log into Pulsar Manager.
3. The Pulsar Manager UI will be open in your browser. You can use the username `pulsar` and password `pulsar` to log into Pulsar Manager.

3. In Pulsar Manager UI, you can create an environment.
4. In Pulsar Manager UI, you can create an environment.

- Click **New Environment** in the upper-left corner.
- Type `pulsar-mini` for the field `Environment Name` in the pop-up window.
- Type `http://pulsar-mini-broker:8080` for the field `Service URL` in the pop-up window.
- Type `http://pulsar-mini-bookie:8080` for the field `Bookie URL` in the pop-up window.
- Click **Confirm** in the pop-up window.

4. After successfully creating an environment, you are redirected to the `tenants` page of that environment. Then you can create `tenants`, `namespaces`, and `topics` using the Pulsar Manager.
5. After successfully creating an environment, you can create `tenants`, `namespaces`, and `topics` using the Pulsar Manager.

## Step 5: Use Prometheus and Grafana to monitor cluster

Expand Down