tillrohrmann commented on a change in pull request #9470: [FLINK-13380][k8s] 
Improve the usability of Flink session cluster on Kubernetes
URL: https://github.com/apache/flink/pull/9470#discussion_r315250270
 
 

 ##########
 File path: docs/ops/deployment/kubernetes.md
 ##########
 @@ -145,18 +204,35 @@ spec:
       containers:
       - name: taskmanager
         image: flink:latest
-        args:
-        - taskmanager
+        workingDir: /opt/flink
+        command: ["/bin/bash", "-c", "$FLINK_HOME/bin/taskmanager.sh start; \
+          while :;
+          do
+            if [[ -f $(find log -name '*taskmanager*.log' -print -quit) ]];
+              then tail -f -n +1 log/*taskmanager*.log;
+            fi;
+          done"]
 
 Review comment:
   Same here, by adding it to the `entrypoint.sh` one could remove a bit of 
code duplication.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to