Is there a way to configure default index pattern in configuration file so I wouldn't have to set it manually after each redeploy?
Unfortunately, there's not a way to set it in the configuration file. The only automated way I could think of would be to send a request to Elasticsearch to update the .kibana entry for config and update the config.defaultIndex after Kibana has started up.