cloudfoundry-community / logsearch-for-cloudfoundry

A Logsearch addon that customises Logsearch to work with Cloud Foundry data
Apache License 2.0
49 stars 58 forks source link

allow overwriting the elasticsearch host and port #311

Closed imukadam closed 5 years ago

imukadam commented 5 years ago

This will allow the overwriting of the elasticsearch host and port properties for the cf-kibana job if specified in the deployment manifest. The job will use the link if the properties is not specified as is the case now.

Example: a deployment can specify a DNS CNAME that points to all elasticsearch host and oprator can use this CNAME for the cf-kibana.elasticsearch.host property

Infra-Red commented 5 years ago

Hi @imukadam ! You can use properties for Elasticsearch configuration with current implementation of erb templates. Just nil existing elasticsearch link and specify configuration in properties block:

name: cf-kibana
release: logsearch-for-cloudfoundry
consumes:
    elasticsearch: nil
properties:
  cf-kibana:
    elasticsearch:
      host: elasticsearch.example.com
      port: 9200

If everything looks good, go ahead and close the PR.

imukadam commented 5 years ago

thanks for putting me straight @Infra-Red! Closing.