You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> k get po -l common.k8s.elastic.co/type=kibana
pod/n-kb-67b849f78f-2wtkz 0/1 Init:Error 2 (27s ago) 49s
Pod logs:
> k logs test-kb-67b849f78f-2wtkz -c elastic-internal-init-keystore
+ keystore_initialized_flag=/usr/share/kibana/config/elastic-internal-init-keystore.ok
+ [[ -f /usr/share/kibana/config/elastic-internal-init-keystore.ok ]]
+ echo'Initializing keystore.'
+ /usr/share/kibana/bin/kibana-keystore create
Initializing keystore.
Error: ENOENT: no such file or directory, open '/usr/share/kibana/config/kibana.yml'
at Object.openSync (node:fs:603:3)
at readFileSync (node:fs:471:35)
at readYaml (/usr/share/kibana/node_modules/@kbn/config/src/raw/read_config.js:20:69)
at getConfigFromFiles (/usr/share/kibana/node_modules/@kbn/config/src/raw/read_config.js:56:18)
at buildDataPaths (/usr/share/kibana/node_modules/@kbn/utils/src/path/index.js:41:82)
at getDataPath (/usr/share/kibana/node_modules/@kbn/utils/src/path/index.js:71:36)
at getKeystore (/usr/share/kibana/src/cli/keystore/get_keystore.js:21:63)
at Object.<anonymous> (/usr/share/kibana/src/cli_keystore/cli_keystore.js:25:71)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Workaround
Explicitely mount kibana.yml from the elastic-internal-kibana-config volume:
To create secure settings, ECK calls the Kibana keystore binary in an init container. Why there is no config.yaml in this init container? It's related to its volumes.
Issue
Kibana
8.11.2
introduced a breaking change that makes it unusable when configured with secure settings for all ECK versions.See:
To reproduce:
Pod gets status
Init:Error
:> k get po -l common.k8s.elastic.co/type=kibana pod/n-kb-67b849f78f-2wtkz 0/1 Init:Error 2 (27s ago) 49s
Pod logs:
Workaround
Explicitely mount
kibana.yml
from theelastic-internal-kibana-config
volume:Long-term solution
Upgrade directly to
8.11.3
(which is not out as I write this but will be very soon).The text was updated successfully, but these errors were encountered: