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_r315249881
##########
File path: docs/ops/deployment/kubernetes.md
##########
@@ -112,20 +153,38 @@ spec:
containers:
- name: jobmanager
image: flink:latest
- args:
- - jobmanager
+ workingDir: /opt/flink
+ command: ["/bin/bash", "-c", "$FLINK_HOME/bin/jobmanager.sh start;\
+ while :;
+ do
+ if [[ -f $(find log -name '*jobmanager*.log' -print -quit) ]];
+ then tail -f -n +1 log/*jobmanager*.log;
+ fi;
+ done"]
ports:
- containerPort: 6123
name: rpc
- containerPort: 6124
name: blob
- - containerPort: 6125
- name: query
- containerPort: 8081
name: ui
- env:
- - name: JOB_MANAGER_RPC_ADDRESS
- value: flink-jobmanager
+ livenessProbe:
+ tcpSocket:
+ port: 6123
+ initialDelaySeconds: 30
+ periodSeconds: 60
+ volumeMounts:
+ - name: flink-config-volume
+ mountPath: /opt/flink/conf
+ volumes:
+ - name: flink-config-volume
Review comment:
Indentation seems to be wrong
----------------------------------------------------------------
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