Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Set cluster name from environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarp authored and sharms committed May 31, 2018
1 parent ec6430c commit cc5c5fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@
}
],
"env": [
{
"name": "CLUSTER_NAME",
"value": "$service_id"
},
{
"name": "DISCOVERY_SERVICE",
"value": "$idx_and_short_serviceid-master.default.svc.cluster.local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@
}
],
"env": [
{
"name": "CLUSTER_NAME",
"value": "$service_id"
},
{
"name": "DISCOVERY_SERVICE",
"value": "$idx_and_short_serviceid-master.default.svc.cluster.local"
Expand Down
4 changes: 4 additions & 0 deletions catalogData/elasticsearch56/medium/k8s/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
}
],
"env": [
{
"name": "CLUSTER_NAME",
"value": "$service_id"
},
{
"name": "DISCOVERY_SERVICE",
"value": "$idx_and_short_serviceid-master.default.svc.cluster.local"
Expand Down
3 changes: 3 additions & 0 deletions custom_images/elasticsearch-56/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ node:
master: ${NODE_MASTER:true}
name: ${HOSTNAME}

cluster:
name: ${CLUSTER_NAME:elasticsearch}

# see https://github.com/kubernetes/kubernetes/issues/3595
bootstrap.memory_lock: ${BOOTSTRAP_MEMORY_LOCK:false}

Expand Down

0 comments on commit cc5c5fc

Please sign in to comment.