elasticsearch2
by ygqygq2
A Helm chart for Kubernetes
About this chart
elasticsearch2 - spring boot 1.X集成版本
Introduction
This chart bootstraps elasticsearch2 deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.6+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release mycharts/elasticsearch2
The command deploys elasticsearch2 cluster on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstall
To uninstall/delete the my-release deployment:
$ helm delete my-release
Configuration
The following table lists the configurable parameters of the FastDFS-Nginx chart and their default values.
| Parameter | Description | Default |
|---|---|---|
statefulset.enabled | use statefulset to start | true |
deploymentStrategy | deployment rollingUpdate setting | {} |
replicaCount | replicas number | 1 |
service | Service type, protocol, port | ClusterIP TCP 9200, 9300 |
env | container env setting | [] |
config | configmap to use | [] |
secret | secret to use | [] |
image | elasticsearch2 image, tag. | elasticsearch 2.4.6 |
ingress | Ingress for the elasticsearch2. | false |
persistentVolume.enabled | Create a volume to store data | true |
persistence.storageClass | Type of persistent volume claim | nil |
persistence.accessModes | Persistent volume access modes | [ReadWriteOnce] |
persistence.existingClaim | Persistent volume existingClaim name | {} |
persistence.annotations | Persistent volume annotations | {} |
healthCheck.enabled | liveness and readiness probes | false |
resources | CPU/Memory resource requests/limits | {} |
deployment | deployment annotations initContainers | {} |
extraContainers | sidecar containers | {} |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
Persistence
The elasticsearch image stores the data and configurations at the /usr/share/elasticsearch/data path of the container.
Deploy elasticsearch2 with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has elasticsearch2 on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartelasticsearch2 is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply