Re: History Server in Kubernetes
Posted by
Till Rohrmann on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/History-Server-in-Kubernetes-tp22698p22703.html
Hi Encho,
currently, the existing image does not support to start a HistoryServer. The reason is simply that it has not been exposed because the image contains everything needed. In order to do this, you would need to extend the docker-entrypoint.sh script with an additional history-server option. It could look the following:
```
if [ "${CMD}" == "${TASK_MANAGER}" ]; then
exec $FLINK_HOME/bin/taskmanager.sh start-foreground "$@"
elif [ "${CMD}" == "history-server" ]; then
exec $FLINK_HOME/bin/historyserver.sh start-foreground "$@"
else
exec $FLINK_HOME/bin/standalone-job.sh start-foreground "$@"
fi
```
Do you want to create an JIRA issue for that and contribute it?
Cheers,
Till
On Thu, Aug 30, 2018 at 9:04 AM Encho Mishinev <
[hidden email]> wrote:
Hello,
I am struggling to find how to run a history server in Kubernetes. The docker image takes an argument that starts a jobmanager or a taskmanager, but no history server. What's the best way to set up one in K8S?
Thanks,
Encho