is it possible configure readiness probe for taskm...
# troubleshooting
k
is it possible configure readiness probe for taskmanager in flink operator?
k
saw this pod template, couldn't find where to add exactly
w
you can try something like this. podTemplate: apiVersion: v1 kind: Pod metadata: name: pod-template spec: containers: # Do not change the main container name - name: flink-main-container livenessProbe: exec: command: - xxxx initialDelaySeconds: 5 periodSeconds: 5
k
when I do adding probe under here flinkdeployment.spec.podTemplate, the probe will be created for both JM and TM, I just want probe to be created for TM only
w
you can add this to flinkdeployment.spec.taskmanager.podTemplate
k
as you said I added here, is it fine? taskManager: resource: memory: 2048m cpu: 1 podTemplate: apiVersion: v1 kind: Pod metadata: name: task-manager-pod-template spec: container: readinessProbe: tcpSocket: port: 8081 initialDelaySeconds: 5 periodSeconds: 10 failureThreshold: 3 successThreshold: 1
w
Yes, try it.
k
Readiness probe failed: dial tcp 10.130.3.638012 connect: connection refused getting this message i nthe event