Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1514749 - Kibana should have configmap attached to it for having an option to change /etc/kibana/kibana.yml
Summary: Kibana should have configmap attached to it for having an option to change /e...
Keywords:
Status: NEW
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Paul Weil
QA Contact: Anping Li
URL:
Whiteboard:
: 1512053 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-18 09:24 UTC by Miheer Salunke
Modified: 2019-02-11 18:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Comment 2 Miheer Salunke 2017-11-18 09:30:48 UTC
Is there are any workaround for this ?

Comment 3 Rich Megginson 2017-11-19 02:40:20 UTC
*** Bug 1512053 has been marked as a duplicate of this bug. ***

Comment 4 Rich Megginson 2017-11-19 03:04:03 UTC
copy kibana.yml from the pod:

# oc exec -c kibana $kibana_pod -- cat /opt/kibana/config/kibana.yml > kibana.yml

save a copy of this original one

# cp kibana.yml kibana.yml.config

edit kibana.yml as desired

create a configmap

# oc create configmap logging-kibana --from-file=kibana.yml=kibana.yml

add a volume mount for this configmap

# oc set volume dc/logging-kibana -c kibana --add -t configmap --name=kibana-config -m /opt/kibana/config --configmap-name=logging-kibana

This should redeploy kibana with the new config

If you need to edit the config:

# oc edit cm logging-kibana

Then

# oc rollout latest dc/logging-kibana
# oc rollout status -w dc/logging-kibana

Comment 6 Rich Megginson 2017-11-21 16:02:45 UTC
Ah, right, sorry, my instructions were for upstream, which uses a different path.  You could review the kibana documentation to see if it is possible to override the location of the config file so that it could be mounted via a configmap in a separate location.


Note You need to log in before you can comment on or make changes to this bug.