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

Create a documentation for production ready Apache Pulsar on k8s #821

Open
atompie opened this issue Oct 1, 2023 · 1 comment
Open

Create a documentation for production ready Apache Pulsar on k8s #821

atompie opened this issue Oct 1, 2023 · 1 comment
Assignees
Labels
hacktoberfest Issues good for hacktoberfest

Comments

@atompie
Copy link
Collaborator

atompie commented Oct 1, 2023

Is your feature request related to a problem? Please describe.
We have a set of instructions for installing Apache Pulsar on Kubernetes (k8s). We need to confirm if these instructions work as expected. If they don't, we'll make adjustments and test to ensure they do.

Describe the solution you'd like
We need someone with dev-ops skills to try to install Apache Pulsar on k8s and see if the docs that are at https://github.com/Tracardi/tracardi-api/blob/0.8.2-dev/docs/installation/pulsar/pulsar_k8s_apache_helm.md actually work.

The installed Apache Pulsar should be protected by the Pulsar token.

use this code to connect and test.

Publisher

import pulsar

client = pulsar.Client( 'pulsar://<host>:6650',  authentication=pulsar.AuthenticationToken(<token>))

producer = client.create_producer('persistent://public/default/topic')

for i in range(10):
    producer.send(('Hello-%d' % i).encode('utf-8'))

client.close()

Consumer

import pulsar

client = pulsar.Client(
    'pulsar://<host>:6650',
    authentication=pulsar.AuthenticationToken(<token> )
)

consumer = client.subscribe('persistent://public/default/topic', 'my-subscription')

while True:
    msg = consumer.receive()
    try:
        print("Received message '{}' id='{}'".format(msg.data(), msg.message_id()))
        # Acknowledge successful processing of the message
        consumer.acknowledge(msg)
    except Exception:
        # Message failed to be processed
        consumer.negative_acknowledge(msg)

client.close()
@atompie atompie added the hacktoberfest Issues good for hacktoberfest label Oct 1, 2023
@atompie atompie changed the title Create a documentation for production ready Apache Pulsar documentation Create a documentation for production ready Apache Pulsar on k8s Oct 1, 2023
@Tejoooo
Copy link

Tejoooo commented Oct 11, 2023

@atompie I m willing to contribute on this can u assign me this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Issues good for hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants