GithubHelp home page GithubHelp logo

tspannhw / spring-kubernetes-pulsar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thiagohernandes/spring-kubernetes-pulsar

0.0 2.0 0.0 14 KB

Playing with: Spring Boot + Kubernetes + Pulsar

Java 100.00%

spring-kubernetes-pulsar's Introduction

Before Start

* install Minikube: https://minikube.sigs.k8s.io/docs/start/
* follow the instructions: https://pulsar.apache.org/
* use: Kubernetes or Docker initilization 

Kubernetes

* after install, important commands:

$ kubectl get pods -n pulsar (get pulsar-mini-toolset-0 to create partitions in bash mode )
$ kubectl exec -it -n pulsar pulsar-mini-toolset-0 -- /bin/bash

[ATTENTION!] format/pattern pulsar:

TENANTS/NAMESPACES/TOPICS

[TENANT]
$ root@pulsar-mini-toolset-0:/pulsar# bin/pulsar-admin tenants create playing 

[NAMESPACE]
$ root@pulsar-mini-toolset-0:/pulsar# bin/pulsar-admin namespaces create playing/api

[TOPIC]
$ root@pulsar-mini-toolset-0:/pulsar# bin/pulsar-admin topics create-partitioned-topic playing/api/our-objects -p 2

[CERTIFY - CREATION]
$ root@pulsar-mini-toolset-0:/pulsar# bin/pulsar-admin topics list-partitioned-topics playing/api
result: "persistent://playing/api/our-objects"

Docker

$ docker run -it \
-p 6650:6650 \
-p 8080:8080 \
--mount source=pulsardata,target=/pulsar/data \
--mount source=pulsarconf,target=/pulsar/conf \
apachepulsar/pulsar:2.8.0 \
bin/pulsar standalone

spring-kubernetes-pulsar's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.