Skip to content

Commit 0c15d4b

Browse files
committed
readme changes
1 parent d8227b2 commit 0c15d4b

2 files changed

Lines changed: 41 additions & 20 deletions

File tree

elasticsearch/Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ apiVersion: v1
1616
description: A Helm chart for Elasticsearch
1717
name: elasticsearch
1818
version: 0.1.0
19+
maintainers:
20+
- name: OpenStack-Helm Authors

elasticsearch/README.md

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,70 @@
1-
# Chart Installation
1+
# Elasticsearch Helm Chart
2+
3+
This chart installs a working version of Elasticsearch cluster on Kubernetes.
4+
5+
#### Installation
6+
7+
Values.yaml container configuration for Elasticsearch cluster.
8+
Note: Minimum of 2 Master Nodes are required for elasticsearch cluster
9+
210
```
311
helm install elasticsearch
412
513
```
6-
Make sure all pods are up and are in running state
14+
### To verify the helm deployment was successful:
715

816
```
9-
kubectl get pods
17+
helm list
18+
```
19+
20+
### To conform all pods are up and running:
1021

1122
```
23+
kubectl get pods
1224
13-
# Testing:
25+
```
1426

15-
1) kubectl get svc
27+
### To view list of services
1628

1729
```
18-
svc/elasticsearch-discovery 10.104.199.12 <none> 9300/TCP 13m
19-
svc/es-client 10.103.178.186 <pending> 9200:30880/TCP 13m
30+
kubectl get svc
2031
```
2132

22-
2) Within cluster, check if healthy cluster
2333
```
24-
curl http://10.103.178.186:9200
34+
elasticsearch-discovery 10.99.148.252 <none> 9300/TCP 47m
35+
elasticsearch-logging 10.105.222.126 <pending> 9200:31070/TCP 47m
36+
```
2537

38+
### Test elasticsearch functionality:
2639

27-
curl http://10.103.178.186:9200/_cluster/health?pretty
40+
From any host within cluster..
2841

42+
1) Check if Elasticsearch cluster is up
43+
```
44+
curl http://10.105.222.126:9200
45+
```
46+
```
47+
curl http://10.105.222.126:9200/_cluster/health?pretty
2948
```
30-
3) Store data manually
3149

50+
2) Store data manually using APIs
3251
```
33-
curl -XPUT 'http://10.103.178.186:9200/blog/user/renmak' -d \
52+
curl -XPUT 'http://10.105.222.126:9200/blog/user/renmak' -d \
3453
'{ "name" : "Dilbert Brown" }'
35-
36-
37-
curl -XPUT 'http://10.103.178.186:9200/blog/post/1' -d \
54+
```
55+
```
56+
curl -XPUT 'http://10.105.222.126:9200/blog/post/1' -d \
3857
'{ "user":"renmak", "title":"how to test ES"}'
3958
```
40-
4) Retrive data
59+
3) Retrive data manually using APIs
4160
```
42-
curl -XGET 'http://10.103.178.186:9200/blog/user/renmak?pretty=true'
61+
curl -XGET 'http://10.105.222.126:9200/blog/user/renmak?pretty=true'
4362
44-
curl -XGET 'http://10.103.178.186:9200/blog/post/1?pretty=true'
63+
curl -XGET 'http://10.105.222.126:9200/blog/post/1?pretty=true'
4564
46-
curl -XGET 'http://10.103.178.186:9200/blog/post/_search?q=user:renmak&pretty=true'
65+
curl -XGET 'http://10.105.222.126:9200/blog/post/_search?q=user:renmak&pretty=true'
4766
48-
curl -XGET 'http://10.103.178.186:9200/_search?q=*renmak&pretty=true'
67+
curl -XGET 'http://10.105.222.126:9200/_search?q=*renmak&pretty=true'
4968
5069
```
5170

0 commit comments

Comments
 (0)