You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/02/03 04:34:10 UTC
[GitHub] [pulsar] Jennifer88huang opened a new pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Jennifer88huang opened a new pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439
Fixes #9418
### Motivation
There is disconnection of Pulsar name verification and Kubernetes name verification, we need to tell users how to define Pulsar resources names when running functions and connectors in K8S.
### Modifications
- Add the above content.
- Remove some unnecessary links.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Jennifer88huang commented on a change in pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439#discussion_r569456694
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -88,3 +83,8 @@ PulsarAdmin admin = PulsarAdmin.builder()
.build();
```
<!--END_DOCUSAURUS_CODE_TABS-->
+
+## How to define Pulsar resource names when running Pulsar in Kubernetes
Review comment:
That's a very good question.
In our current docs, we have different information on K8S, how to get started with K8S, how to install, deploy, upgrade and so on. It's most from the operation side.
Then who cares how to define their Pulsar resource names? It's usually the developers/admin. And they have three ways to define them (REST API, pulsar-admin, client). Since the situation apply to different resources like namespace, tenant, topics..., so it's better to add it in the overview. If they do not know the rule, it's the best place for them to check it after admin setup.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Huanli-Meng commented on a change in pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Huanli-Meng commented on a change in pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439#discussion_r569271675
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -88,3 +83,8 @@ PulsarAdmin admin = PulsarAdmin.builder()
.build();
```
<!--END_DOCUSAURUS_CODE_TABS-->
+
+## How to define Pulsar resource names when running Pulsar in Kubernetes
+If you run Pulsar Functions or connectors on Kubernetes, you need to follow Kubernetes naming convention to define your Pulsar resource name, whichever admin interface you use.
Review comment:
I think it's not just the name of Pulsar functions or connectors, others Pulsar components also have the same issue.
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -1,39 +1,34 @@
---
id: admin-api-overview
-title: The Pulsar admin interface
+title: Pulsar admin interface
sidebar_label: Overview
---
-The Pulsar admin interface enables you to manage all of the important entities in a Pulsar [instance](reference-terminology.md#instance), such as [tenants](reference-terminology.md#tenant), [topics](reference-terminology.md#topic), and [namespaces](reference-terminology.md#namespace).
+The Pulsar admin interface enables you to manage all important entities in a Pulsar instance, such as tenants, topics, and namespaces.
-You can currently interact with the admin interface via:
+You can interact with the admin interface via:
-- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar [brokers](reference-terminology.md#broker). For some restful apis, they might be redirected to topic owner brokers for serving
- with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you are using `curl`, you should specify `-L`
- to handle redirections.
-- The `pulsar-admin` CLI tool, which is available in the `bin` folder of your [Pulsar installation](getting-started-standalone.md):
-
-```shell
-$ bin/pulsar-admin
-```
+- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar brokers. For some restful APIs, they might be redirected to the topic owner brokers for serving with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you use `curl`, you should specify `-L` to handle redirections.
+- A Java client interface.
+- The `pulsar-admin` CLI tool, which is available in the `bin` folder of your Pulsar installation:
-Full documentation for this tool can be found in the [Pulsar command-line tools](reference-pulsar-admin.md) doc.
+ ```shell
+ $ bin/pulsar-admin
+ ```
-- A Java client interface.
+ For details of `pulsar-admin` tool, see the [Pulsar command-line tools](reference-pulsar-admin.md) doc.
-> #### The REST API is the admin interface
-> Under the hood, both the `pulsar-admin` CLI tool and the Java client both use the REST API. If you’d like to implement your own admin interface client, you should use the REST API as well. Full documentation can be found here.
-In this document, examples from each of the three available interfaces will be shown.
+> **The REST API is the admin interface**. Both the `pulsar-admin` CLI tool and the Java client use the REST API. If you implement your own admin interface client, you should use the REST API.
Review comment:
REST or RESTful ?
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -1,39 +1,34 @@
---
id: admin-api-overview
-title: The Pulsar admin interface
+title: Pulsar admin interface
sidebar_label: Overview
---
-The Pulsar admin interface enables you to manage all of the important entities in a Pulsar [instance](reference-terminology.md#instance), such as [tenants](reference-terminology.md#tenant), [topics](reference-terminology.md#topic), and [namespaces](reference-terminology.md#namespace).
+The Pulsar admin interface enables you to manage all important entities in a Pulsar instance, such as tenants, topics, and namespaces.
-You can currently interact with the admin interface via:
+You can interact with the admin interface via:
-- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar [brokers](reference-terminology.md#broker). For some restful apis, they might be redirected to topic owner brokers for serving
- with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you are using `curl`, you should specify `-L`
- to handle redirections.
-- The `pulsar-admin` CLI tool, which is available in the `bin` folder of your [Pulsar installation](getting-started-standalone.md):
-
-```shell
-$ bin/pulsar-admin
-```
+- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar brokers. For some restful APIs, they might be redirected to the topic owner brokers for serving with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you use `curl`, you should specify `-L` to handle redirections.
Review comment:
```suggestion
- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar brokers. For some RESTful APIs, they might be redirected to the owner brokers for serving with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you use `curl` commands, you should specify `-L` to handle redirections.
```
I think these three bullets should use the same structure. you can try to update this as:
- HTTP calls, which is made against ...
- Java client interfacce
- The`pulsar-admin` CLI tool, which
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Jennifer88huang commented on a change in pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439#discussion_r569438264
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -1,39 +1,34 @@
---
id: admin-api-overview
-title: The Pulsar admin interface
+title: Pulsar admin interface
sidebar_label: Overview
---
-The Pulsar admin interface enables you to manage all of the important entities in a Pulsar [instance](reference-terminology.md#instance), such as [tenants](reference-terminology.md#tenant), [topics](reference-terminology.md#topic), and [namespaces](reference-terminology.md#namespace).
+The Pulsar admin interface enables you to manage all important entities in a Pulsar instance, such as tenants, topics, and namespaces.
-You can currently interact with the admin interface via:
+You can interact with the admin interface via:
-- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar [brokers](reference-terminology.md#broker). For some restful apis, they might be redirected to topic owner brokers for serving
- with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you are using `curl`, you should specify `-L`
- to handle redirections.
-- The `pulsar-admin` CLI tool, which is available in the `bin` folder of your [Pulsar installation](getting-started-standalone.md):
-
-```shell
-$ bin/pulsar-admin
-```
+- Making HTTP calls against the admin {@inject: rest:REST:/} API provided by Pulsar brokers. For some restful APIs, they might be redirected to the topic owner brokers for serving with [`307 Temporary Redirect`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307), hence the HTTP callers should handle `307 Temporary Redirect`. If you use `curl`, you should specify `-L` to handle redirections.
+- A Java client interface.
+- The `pulsar-admin` CLI tool, which is available in the `bin` folder of your Pulsar installation:
-Full documentation for this tool can be found in the [Pulsar command-line tools](reference-pulsar-admin.md) doc.
+ ```shell
+ $ bin/pulsar-admin
+ ```
-- A Java client interface.
+ For details of `pulsar-admin` tool, see the [Pulsar command-line tools](reference-pulsar-admin.md) doc.
-> #### The REST API is the admin interface
-> Under the hood, both the `pulsar-admin` CLI tool and the Java client both use the REST API. If you’d like to implement your own admin interface client, you should use the REST API as well. Full documentation can be found here.
-In this document, examples from each of the three available interfaces will be shown.
+> **The REST API is the admin interface**. Both the `pulsar-admin` CLI tool and the Java client use the REST API. If you implement your own admin interface client, you should use the REST API.
Review comment:
Here we can use "REST".
RESTful service is the one that implements the REST architectural pattern, and on our REST API page, we use the word "REST".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439#discussion_r569286939
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -88,3 +83,8 @@ PulsarAdmin admin = PulsarAdmin.builder()
.build();
```
<!--END_DOCUSAURUS_CODE_TABS-->
+
+## How to define Pulsar resource names when running Pulsar in Kubernetes
Review comment:
Why add this content to this file rather than K8S related sections?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Jennifer88huang commented on a change in pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439#discussion_r569441858
##########
File path: site2/docs/admin-api-overview.md
##########
@@ -88,3 +83,8 @@ PulsarAdmin admin = PulsarAdmin.builder()
.build();
```
<!--END_DOCUSAURUS_CODE_TABS-->
+
+## How to define Pulsar resource names when running Pulsar in Kubernetes
+If you run Pulsar Functions or connectors on Kubernetes, you need to follow Kubernetes naming convention to define your Pulsar resource name, whichever admin interface you use.
Review comment:
You're right, that's why we say when you define your Pulsar resource names, you need to follow K8S naming convention (only when you use K8S runtime). To make it more clear, maybe it's better to say "...define the names of your Pulsar resources..."
However, if you don't use K8S runtime, you don't need to follow K8S convention. Pulsar supports more characters than K8S naming convention.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jennifer88huang merged pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Jennifer88huang merged pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jennifer88huang commented on pull request #9439: [Issue 9418][docs] Add how to define Pulsar resources names when using K8S runtime
Posted by GitBox <gi...@apache.org>.
Jennifer88huang commented on pull request #9439:
URL: https://github.com/apache/pulsar/pull/9439#issuecomment-773020763
Related to https://github.com/apache/pulsar/issues/9360
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org