# Elasticsearch Upgrade from 6.7 to 7.0 on Kubernetes

**URL:** <https://discuss.elastic.co/t/elasticsearch-upgrade-from-6-7-to-7-0-on-kubernetes/177560>\
**Category:** Elasticsearch\
**Created:** [April 19, 2019, 3:46am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-6-7-to-7-0-on-kubernetes/177560 "2019-04-19T03:46:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterlee0127](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peterlee0127/32/44384_2.png) [@peterlee0127](https://discuss.elastic.co/u/peterlee0127)\
**Post date:** [April 19, 2019, 3:46am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-6-7-to-7-0-on-kubernetes/177560/1 "2019-04-19T03:46:42Z")

</div>

Hi , I have some question about upgrade ELK from 6.x to 7.0.

Nodes: elasticsearch-0, elasticsearch-1

Part of Elasticsearch 6.7.0 yaml

```
  spec:
  containers:
  - env:
     #- name: cluster.initial_master_nodes
     # value: elasticsearch-0.es
    - name: cluster.name
      value: elasticsearch-cluster
    - name: node.name
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.name
    - name: discovery.seed_hosts
      value: elasticsearch-0.es,elasticsearch-1.es
    - name: ES_JAVA_OPTS
      value: -Xms3g -Xmx3g
    - name: cluster.remote.connect
      value: "true"
    image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0
    imagePullPolicy: IfNotPresent
    name: elasticsearch

```

## On Kibana-dev\_tools

GET \_cat/nodes?v

```
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.12.16.12 16 92 25 1.21 1.79 1.39 mdi - elasticsearch-1
10.12.16.10 16 92 25 1.21 1.79 1.39 mdi * elasticsearch-0

```

GET \_cat/master?v

```
id host ip node
rnjEQ3gfQuO50giXbgE8sw 10.12.16.10 10.12.16.10 elasticsearch-0

```

* * *

Part of Elasticsearch 7.0.0 yaml

```
  spec:
  containers:
  - env:
    - name: cluster.initial_master_nodes
      value: elasticsearch-0.es
    - name: cluster.name
      value: elasticsearch-cluster
    - name: node.name
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.name
    - name: discovery.seed_hosts
      value: elasticsearch-0.es,elasticsearch-1.es
    - name: ES_JAVA_OPTS
      value: -Xms3g -Xmx3g
    - name: cluster.remote.connect
      value: "true"
    image: docker.elastic.co/elasticsearch/elasticsearch:7.0.0

```

Sometimes cat master or nodes return different node info.

## On Kibana-dev\_tools

GET \_cat/master?v

```
id host ip node
s9jkuIrTSdeP4mJ-QgzbVQ 10.0.1.25 10.0.1.25 elasticsearch-0

```

GET \_cat/master?v

```
id host ip node
R5DcgRMvQH60HjaEY6A-kA 10.0.5.20 10.0.5.20 elasticsearch-1

```

GET \_cat/nodes?v

```
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.0.5.20 49 79 33 0.82 0.83 1.09 mdi * elasticsearch-1

```

GET \_cat/nodes?v

```
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.0.1.25 29 81 33 0.20 0.32 0.52 mdi * elasticsearch-0

```

* * *

## 1. Output cat/nodes return different node every time.

In 6.7.0 it seem normal.  
But in 7.0.0, "\_cat/nodes?v" return the different node every time.

[Reference for setting up ELK 6.7.0 on GKE](https://medium.com/google-cloud/a-guide-to-deploy-elasticsearch-cluster-on-google-kubernetes-engine-52f67743ee98)

## 2. Logstash didn't use the default index indices

default index: "logstash-%{+YYYY.MM.dd}".

```
output {
    elasticsearch { hosts => ["10.138.15.211:9200"]}
}

```

It use "logstash" as index indices.

## 3. In my case. Should I config "cluster.initial\_master\_nodes" ?

```
- name: cluster.initial_master_nodes
  value: elasticsearch-0.es, elasticsearch-1.es

```

![38%20AM](https://us1.discourse-cdn.com/elastic/original/3X/7/1/7166d3c149ddc569907554e2fc301daa7c271872.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 17, 2019, 3:46am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-6-7-to-7-0-on-kubernetes/177560/2 "2019-05-17T03:46:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
