Fixes #6338 ### Motivation This commit started while I was using helm in my local minikube, noticed that there's a mismatch between `values-mini.yaml` and `values.yaml` files. At first I thought it was a copy/paste error. So I created #6338; Then I looked into the details how these env-vars[ were used](28875d5abc/conf/bkenv.sh (L36)), found out its ok to use `PULSAR_MEM` as an alternative. But it introduce problems: 1. Since `BOOKIE_GC` was not defined , the default [BOOKIE_EXTRA_OPTS](28875d5abc/conf/bkenv.sh (L39)) will finally use default value of `BOOKIE_GC`, thus would cover same the JVM parameters defined prior in `PULSAR_MEM`. 2. May cause problems when bootstrap scripts changed in later dev, better to make it explicitly. So I create this pr to solve above problems(hidden trouble). ### Modifications As mentioned above, I've made such modifications below: 1. make `BOOKIE_MEM` and `BOOKIE_GC` explicit in `values-mini.yaml` file. Keep up with the format in`values.yaml` file. 2. remove all print-gc-logs related args. Considering the resource constraints of minikube environment. The removed part's content is `-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintHeapAtGC -verbosegc -XX:G1LogLevel=finest` 3. leave `PULSAR_PREFIX_dbStorage_rocksDB_blockCacheSize` empty as usual, as [conf/standalone.conf#L576](df15210941/conf/standalone.conf (L576)) says it would to use 10% of the direct memory size by default.
This directory contains the Helm Chart required to do a complete Pulsar deployment on Kubernetes.
Install Helm
Before you start, you need to install helm. Following helm documentation to install it.
Deploy Pulsar
Minikube
Install Minikube
Install and configure minikube with
a VM driver, e.g. kvm2 on Linux
or hyperkit or VirtualBox on macOS.
Create a K8S cluster on Minikube
minikube start --memory=8192 --cpus=4
Set kubectl to use Minikube.
kubectl config use-context minikube
After you created a K8S cluster on Minikube, you can access its dashboard via following command:
minikube dashboard
The command will automatically trigger open a webpage in your browser.
Install Pulsar Chart
Assume you already cloned pulsar repo in PULSAR_HOME directory.
- Go to Pulsar helm chart directory
cd ${PULSAR_HOME}/deployment/kubernetes/helm - Install helm chart.
helm install --values pulsar/values-mini.yaml ./pulsar
Once the helm chart is completed on installation, you can access the cluster via:
- Web service url:
http://$(minikube ip):30001/ - Pulsar service url:
pulsar://$(minikube ip):30002/
Description
Languages
Shell
58.6%
Smarty
38.6%
Go
2.8%