Skip to content

Commit 87028dd

Browse files
committed
Upgrade Elasticsearch to version 5.3.0.
Signed-off-by: Paulo Pires <[email protected]>
1 parent 81d51e5 commit 87028dd

File tree

5 files changed

+58
-57
lines changed

5 files changed

+58
-57
lines changed

README.md

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -47,55 +47,56 @@ Now, I leave up to you how to validate the cluster, but a first step is to wait
4747
```
4848
$ kubectl get svc,deployment,pods
4949
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
50-
svc/elasticsearch 10.100.71.108 <pending> 9200:31651/TCP 4m
51-
svc/elasticsearch-discovery 10.100.53.60 <none> 9300/TCP 4m
52-
svc/kubernetes 10.100.0.1 <none> 443/TCP 24m
50+
svc/elasticsearch 10.100.131.27 <pending> 9200:31167/TCP 3m
51+
svc/elasticsearch-discovery 10.100.68.199 <none> 9300/TCP 3m
52+
svc/kubernetes 10.100.0.1 <none> 443/TCP 9m
5353
5454
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
55-
deploy/es-client 2 2 2 2 56s
56-
deploy/es-data 2 2 2 2 55s
57-
deploy/es-master 3 3 3 3 4m
55+
deploy/es-client 2 2 2 2 2m
56+
deploy/es-data 2 2 2 2 2m
57+
deploy/es-master 3 3 3 3 3m
5858
5959
NAME READY STATUS RESTARTS AGE
60-
po/es-client-1098028550-1915s 1/1 Running 0 55s
61-
po/es-client-1098028550-8mkhw 1/1 Running 0 55s
62-
po/es-data-1376153705-mn0g8 1/1 Running 0 55s
63-
po/es-data-1376153705-q56ms 1/1 Running 0 55s
64-
po/es-master-1414048425-9c1px 1/1 Running 0 4m
65-
po/es-master-1414048425-sqk5j 1/1 Running 0 4m
66-
po/es-master-1414048425-zc9t1 1/1 Running 0 4m
67-
```
68-
69-
```
70-
$ kubectl logs po/es-master-1414048425-9c1px
71-
[2017-03-14T19:02:36,162][INFO ][o.e.n.Node ] [es-master-1414048425-9c1px] initializing ...
72-
[2017-03-14T19:02:36,370][INFO ][o.e.e.NodeEnvironment ] [es-master-1414048425-9c1px] using [1] data paths, mounts [[/data (/dev/sda9)]], net usable_space [13.5gb], net total_space [15.5gb], spins? [possibly], types [ext4]
73-
[2017-03-14T19:02:36,371][INFO ][o.e.e.NodeEnvironment ] [es-master-1414048425-9c1px] heap size [247.5mb], compressed ordinary object pointers [true]
74-
[2017-03-14T19:02:36,375][INFO ][o.e.n.Node ] [es-master-1414048425-9c1px] node name [es-master-1414048425-9c1px], node ID [WbRRfEJgSZezPoiiSzACaw]
75-
[2017-03-14T19:02:36,384][INFO ][o.e.n.Node ] [es-master-1414048425-9c1px] version[5.2.2], pid[11], build[f9d9b74/2017-02-24T17:26:45.835Z], OS[Linux/4.10.1-coreos/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_111/25.111-b14]
76-
[2017-03-14T19:02:40,974][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [aggs-matrix-stats]
77-
[2017-03-14T19:02:40,975][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [ingest-common]
78-
[2017-03-14T19:02:40,975][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [lang-expression]
79-
[2017-03-14T19:02:40,975][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [lang-groovy]
80-
[2017-03-14T19:02:40,975][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [lang-mustache]
81-
[2017-03-14T19:02:40,976][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [lang-painless]
82-
[2017-03-14T19:02:40,976][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [percolator]
83-
[2017-03-14T19:02:40,976][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [reindex]
84-
[2017-03-14T19:02:40,977][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [transport-netty3]
85-
[2017-03-14T19:02:40,977][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] loaded module [transport-netty4]
86-
[2017-03-14T19:02:40,979][INFO ][o.e.p.PluginsService ] [es-master-1414048425-9c1px] no plugins loaded
87-
[2017-03-14T19:02:41,678][WARN ][o.e.d.s.g.GroovyScriptEngineService] [groovy] scripts are deprecated, use [painless] scripts instead
88-
[2017-03-14T19:02:49,823][INFO ][o.e.n.Node ] [es-master-1414048425-9c1px] initialized
89-
[2017-03-14T19:02:49,823][INFO ][o.e.n.Node ] [es-master-1414048425-9c1px] starting ...
90-
[2017-03-14T19:02:50,244][WARN ][i.n.u.i.MacAddressUtil ] Failed to find a usable hardware address from the network interfaces; using random bytes: 2b:61:80:c4:3d:26:cb:d6
91-
[2017-03-14T19:02:50,414][INFO ][o.e.t.TransportService ] [es-master-1414048425-9c1px] publish_address {10.244.23.3:9300}, bound_addresses {10.244.23.3:9300}
92-
[2017-03-14T19:02:50,431][INFO ][o.e.b.BootstrapChecks ] [es-master-1414048425-9c1px] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
93-
[2017-03-14T19:02:53,772][INFO ][o.e.c.s.ClusterService ] [es-master-1414048425-9c1px] detected_master {es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300}, added {{es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300},{es-master-1414048425-zc9t1}{F3Y0AfkFSh-0FsHTJDPuJQ}{rTnFmVvVTISsfZ2Wxk3JcQ}{10.244.80.2}{10.244.80.2:9300},}, reason: zen-disco-receive(from master [master {es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300} committed version [3]])
94-
[2017-03-14T19:02:53,917][INFO ][o.e.n.Node ] [es-master-1414048425-9c1px] started
95-
[2017-03-14T19:05:30,551][INFO ][o.e.c.s.ClusterService ] [es-master-1414048425-9c1px] added {{es-data-1376153705-q56ms}{HHS97wT1Tla0pUseDu418Q}{iP4gynUfQj21nQIlXHPmvw}{10.244.31.3}{10.244.31.3:9300},}, reason: zen-disco-receive(from master [master {es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300} committed version [4]])
96-
[2017-03-14T19:05:30,760][INFO ][o.e.c.s.ClusterService ] [es-master-1414048425-9c1px] added {{es-client-1098028550-8mkhw}{LiT0U2UjSNWXQQam9ay7Ig}{VcNQ20Q6TUKDEpwe_5ZSfA}{10.244.23.4}{10.244.23.4:9300},}, reason: zen-disco-receive(from master [master {es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300} committed version [5]])
97-
[2017-03-14T19:05:42,669][INFO ][o.e.c.s.ClusterService ] [es-master-1414048425-9c1px] added {{es-client-1098028550-1915s}{JlSHpfbqQvKe-fgRz6u0uA}{c7C8Da9hRG-CABDEQ8NysQ}{10.244.80.3}{10.244.80.3:9300},}, reason: zen-disco-receive(from master [master {es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300} committed version [6]])
98-
[2017-03-14T19:05:44,652][INFO ][o.e.c.s.ClusterService ] [es-master-1414048425-9c1px] added {{es-data-1376153705-mn0g8}{M8nx_q1URb-ILfyCOdHp7g}{Y99IfbPsTQKVWPddMAJtog}{10.244.80.4}{10.244.80.4:9300},}, reason: zen-disco-receive(from master [master {es-master-1414048425-sqk5j}{Dx97PIjIRLKP-bNKJSD3QQ}{izN8ilSxRO6EY7TFpg2awQ}{10.244.31.2}{10.244.31.2:9300} committed version [7]])
60+
po/es-client-2639500660-9f89h 1/1 Running 0 2m
61+
po/es-client-2639500660-t1k8n 1/1 Running 0 2m
62+
po/es-data-3972755415-56hwx 1/1 Running 0 2m
63+
po/es-data-3972755415-9zkfm 1/1 Running 0 2m
64+
po/es-master-2387585559-7tdpx 1/1 Running 0 3m
65+
po/es-master-2387585559-f63q7 1/1 Running 0 3m
66+
po/es-master-2387585559-xw8cz 1/1 Running 0 3m
67+
```
68+
69+
```
70+
$ kubectl logs es-master-2387585559-xw8cz
71+
[2017-04-05T09:36:04,279][INFO ][o.e.n.Node ] [es-master-2387585559-xw8cz] initializing ...
72+
[2017-04-05T09:36:04,499][INFO ][o.e.e.NodeEnvironment ] [es-master-2387585559-xw8cz] using [1] data paths, mounts [[/data (/dev/sda9)]], net usable_space [13.6gb], net total_space [15.5gb], spins? [possibly], types [ext4]
73+
[2017-04-05T09:36:04,500][INFO ][o.e.e.NodeEnvironment ] [es-master-2387585559-xw8cz] heap size [247.5mb], compressed ordinary object pointers [true]
74+
[2017-04-05T09:36:04,504][INFO ][o.e.n.Node ] [es-master-2387585559-xw8cz] node name [es-master-2387585559-xw8cz], node ID [K9JghurbTUSrEpXxizmPrA]
75+
[2017-04-05T09:36:04,513][INFO ][o.e.n.Node ] [es-master-2387585559-xw8cz] version[5.3.0], pid[14], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Linux/4.10.4-coreos-r1/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_121/25.121-b13]
76+
[2017-04-05T09:36:07,593][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [aggs-matrix-stats]
77+
[2017-04-05T09:36:07,593][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [ingest-common]
78+
[2017-04-05T09:36:07,603][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [lang-expression]
79+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [lang-groovy]
80+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [lang-mustache]
81+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [lang-painless]
82+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [percolator]
83+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [reindex]
84+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [transport-netty3]
85+
[2017-04-05T09:36:07,613][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] loaded module [transport-netty4]
86+
[2017-04-05T09:36:07,623][INFO ][o.e.p.PluginsService ] [es-master-2387585559-xw8cz] no plugins loaded
87+
[2017-04-05T09:36:17,326][INFO ][o.e.n.Node ] [es-master-2387585559-xw8cz] initialized
88+
[2017-04-05T09:36:17,328][INFO ][o.e.n.Node ] [es-master-2387585559-xw8cz] starting ...
89+
[2017-04-05T09:36:17,692][WARN ][i.n.u.i.MacAddressUtil ] Failed to find a usable hardware address from the network interfaces; using random bytes: e6:60:38:71:02:5a:41:8b
90+
[2017-04-05T09:36:17,933][INFO ][o.e.t.TransportService ] [es-master-2387585559-xw8cz] publish_address {10.244.6.2:9300}, bound_addresses {10.244.6.2:9300}
91+
[2017-04-05T09:36:17,988][INFO ][o.e.b.BootstrapChecks ] [es-master-2387585559-xw8cz] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
92+
[2017-04-05T09:36:21,216][INFO ][o.e.c.s.ClusterService ] [es-master-2387585559-xw8cz] new_master {es-master-2387585559-xw8cz}{K9JghurbTUSrEpXxizmPrA}{GKs6dCrTRtCYX-96mKjxEA}{10.244.6.2}{10.244.6.2:9300}, added {{es-master-2387585559-7tdpx}{a0HceF7IQAytke5t8xOOuA}{CUu_FnIqQuCSd7wFsQ6jMQ}{10.244.25.3}{10.244.25.3:9300},}, reason: zen-disco-elected-as-master ([1] nodes joined)[{es-master-2387585559-7tdpx}{a0HceF7IQAytke5t8xOOuA}{CUu_FnIqQuCSd7wFsQ6jMQ}{10.244.25.3}{10.244.25.3:9300}]
93+
[2017-04-05T09:36:21,321][INFO ][o.e.n.Node ] [es-master-2387585559-xw8cz] started
94+
[2017-04-05T09:36:21,469][INFO ][o.e.g.GatewayService ] [es-master-2387585559-xw8cz] recovered [0] indices into cluster_state
95+
[2017-04-05T09:36:27,306][INFO ][o.e.c.s.ClusterService ] [es-master-2387585559-xw8cz] added {{es-master-2387585559-f63q7}{h85MLxj1RluSt4Flc4IZiQ}{GMOYzf5uRvuPkRCkzhCDkA}{10.244.52.2}{10.244.52.2:9300},}, reason: zen-disco-node-join[{es-master-2387585559-f63q7}{h85MLxj1RluSt4Flc4IZiQ}{GMOYzf5uRvuPkRCkzhCDkA}{10.244.52.2}{10.244.52.2:9300}]
96+
[2017-04-05T09:37:15,131][INFO ][o.e.c.s.ClusterService ] [es-master-2387585559-xw8cz] added {{es-client-2639500660-9f89h}{73QynpQ7TuOpwNLObTyN9w}{dVqM03QlTLOR8nnwo5U3KQ}{10.244.25.4}{10.244.25.4:9300},}, reason: zen-disco-node-join[{es-client-2639500660-9f89h}{73QynpQ7TuOpwNLObTyN9w}{dVqM03QlTLOR8nnwo5U3KQ}{10.244.25.4}{10.244.25.4:9300}]
97+
[2017-04-05T09:37:16,326][INFO ][o.e.c.s.ClusterService ] [es-master-2387585559-xw8cz] added {{es-data-3972755415-56hwx}{1GjUxBERRUKNO_v_xBmYAA}{p47k2DhGSOqc3ffZ7dXXmQ}{10.244.52.3}{10.244.52.3:9300},}, reason: zen-disco-node-join[{es-data-3972755415-56hwx}{1GjUxBERRUKNO_v_xBmYAA}{p47k2DhGSOqc3ffZ7dXXmQ}{10.244.52.3}{10.244.52.3:9300}]
98+
[2017-04-05T09:37:29,922][INFO ][o.e.c.s.ClusterService ] [es-master-2387585559-xw8cz] added {{es-client-2639500660-t1k8n}{QWejqvjqQ1yqjy5zaCF8UA}{Q4KAOUU0RIeeMt7XKFxSQg}{10.244.6.3}{10.244.6.3:9300},}, reason: zen-disco-node-join[{es-client-2639500660-t1k8n}{QWejqvjqQ1yqjy5zaCF8UA}{Q4KAOUU0RIeeMt7XKFxSQg}{10.244.6.3}{10.244.6.3:9300}]
99+
[2017-04-05T09:37:31,236][INFO ][o.e.c.s.ClusterService ] [es-master-2387585559-xw8cz] added {{es-data-3972755415-9zkfm}{OGbRr6xYRA-48yz05S2w8Q}{Xm_RnNlBTXmrG-d8c-IBow}{10.244.6.4}{10.244.6.4:9300},}, reason: zen-disco-node-join[{es-data-3972755415-9zkfm}{OGbRr6xYRA-48yz05S2w8Q}{Xm_RnNlBTXmrG-d8c-IBow}{10.244.6.4}{10.244.6.4:9300}]
99100
```
100101

101102
As you can assert, the cluster is up and running. Easy, wasn't it?
@@ -107,26 +108,26 @@ As you can assert, the cluster is up and running. Easy, wasn't it?
107108
```
108109
$ kubectl get svc elasticsearch
109110
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
110-
elasticsearch 10.100.71.108 <pending> 9200:31651/TCP 4m
111+
elasticsearch 10.100.131.27 <pending> 9200:31167/TCP 5m
111112
```
112113

113114
From any host on your cluster (that's running `kube-proxy`), run:
114115

115116
```
116-
curl http://10.100.71.108:9200
117+
curl http://10.100.131.27:9200
117118
```
118119

119120
You should see something similar to the following:
120121

121122
```json
122123
{
123-
"name" : "es-client-1098028550-8mkhw",
124+
"name" : "es-client-2639500660-t1k8n",
124125
"cluster_name" : "myesdb",
125-
"cluster_uuid" : "yEh9VWBsQc2yzptFH6DP2A",
126+
"cluster_uuid" : "obAMiJP8QtO2KNjLjlo1hQ",
126127
"version" : {
127-
"number" : "5.2.2",
128-
"build_hash" : "f9d9b74",
129-
"build_date" : "2017-02-24T17:26:45.835Z",
128+
"number" : "5.3.0",
129+
"build_hash" : "3adb13b",
130+
"build_date" : "2017-03-23T03:31:50.652Z",
130131
"build_snapshot" : false,
131132
"lucene_version" : "6.4.1"
132133
},
@@ -137,7 +138,7 @@ You should see something similar to the following:
137138
Or if you want to see cluster information:
138139

139140
```
140-
curl http://10.100.71.108:9200/_cluster/health?pretty
141+
curl http://10.100.131.27:9200/_cluster/health?pretty
141142
```
142143

143144
You should see something similar to the following:

es-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
add:
3434
- IPC_LOCK
3535
- SYS_RESOURCE
36-
image: quay.io/pires/docker-elasticsearch-kubernetes:5.2.2_2
36+
image: quay.io/pires/docker-elasticsearch-kubernetes:5.3.0
3737
imagePullPolicy: Always
3838
env:
3939
- name: NAMESPACE

es-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
add:
3434
- IPC_LOCK
3535
- SYS_RESOURCE
36-
image: quay.io/pires/docker-elasticsearch-kubernetes:5.2.2_2
36+
image: quay.io/pires/docker-elasticsearch-kubernetes:5.3.0
3737
imagePullPolicy: Always
3838
env:
3939
- name: NAMESPACE

es-master.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
add:
3434
- IPC_LOCK
3535
- SYS_RESOURCE
36-
image: quay.io/pires/docker-elasticsearch-kubernetes:5.2.2_2
36+
image: quay.io/pires/docker-elasticsearch-kubernetes:5.3.0
3737
imagePullPolicy: Always
3838
env:
3939
- name: NAMESPACE

stateful/es-data-stateful.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
capabilities:
3434
add:
3535
- IPC_LOCK
36-
image: quay.io/pires/docker-elasticsearch-kubernetes:5.2.2_2
36+
image: quay.io/pires/docker-elasticsearch-kubernetes:5.3.0
3737
imagePullPolicy: Always
3838
env:
3939
- name: NAMESPACE

0 commit comments

Comments
 (0)