* [documentation][deploy] Update deployment instructions for deploying to Minikube * Enable functions workers * [documentation][deploy] Improve helm deployment script to deploy Pulsar to minikube ### Changes - update the helm scripts: bookie/autorecovery/broker pods should wait until metadata is initialized - disable `autoRecovery` on bookies since we start `AutoRecovery` in separate pods - enable function worker on brokers - provide a values file for minikube - update documentation for using helm chart to deploy a cluster to minikube * move the service type definition to values file
78 lines
2.2 KiB
Markdown
78 lines
2.2 KiB
Markdown
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
|
|
-->
|
|
|
|
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](https://docs.helm.sh/using_helm/#installing-helm) to install it.
|
|
|
|
## Deploy Pulsar
|
|
|
|
### Minikube
|
|
|
|
#### Install Minikube
|
|
|
|
[Install and configure minikube](https://github.com/kubernetes/minikube#installation) with
|
|
a [VM driver](https://github.com/kubernetes/minikube#requirements), e.g. `kvm2` on Linux
|
|
or `hyperkit` or `VirtualBox` on macOS.
|
|
|
|
#### Create a K8S cluster on Minikube
|
|
|
|
```
|
|
minikube start --memory=8192 --cpus=4 \
|
|
--kubernetes-version=v1.10.5
|
|
```
|
|
|
|
#### 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.
|
|
|
|
1. Go to Pulsar helm chart directory
|
|
```shell
|
|
cd ${PULSAR_HOME}/deployment/kubernetes/helm
|
|
```
|
|
1. Install helm chart.
|
|
```shell
|
|
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/`
|