roman-popenov 97ed16d2c6 [Issue-5958][helm]: Fixing templates for helm deployment (#6148)
Motivation:
Fixes #5958: 

The following error appears when trying to deploy Pulsar using helm and values-mini.yaml: 

```unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "requests" in io.k8s.api.core.v1.Container``` 

Cause:
Mistake in the `pulsar-manager-deployment.yaml` deployment file:

First line **63** should be:
`{{- if .Values.pulsar_manager.resources }}` and it is currently `{{- if .Values.grafana.resources }}`

There is also a mistake at line **65**:
`{{ toYaml .Values.grafana.resources | indent 10 }}` should be `{{ toYaml .Values.pulsar_manager.resources | indent 12 }}`

Modifications:
Changed values in `values.yaml` and `templates/pulsar-manager-deployment.yaml`

Test:
Deploy the application into a kubernetes local cluster with
`helm install pulsar-cluster --values pulsar/values-mini.yaml pulsar`

AND

`helm install pulsar-cluster --values pulsar/values.yaml pulsar`

Documentation:
Does this pull request introduce a new feature? - **No**
2020-01-31 23:56:09 -08:00

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.

  1. Go to Pulsar helm chart directory
    cd ${PULSAR_HOME}/deployment/kubernetes/helm
    
  2. 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/
Languages
Shell 58.6%
Smarty 38.6%
Go 2.8%