I'm using flink kubernetes operator 1.2 and flink ...
# troubleshooting
ł
I'm using flink kubernetes operator 1.2 and flink 1.15. I have to mount persistent volume claim to taskamanger only (RWO mode) but when I add volume and volumeMounts to taskmanager.podTemplate there is some problem with creating taskmanager pod by flink operator. There is such error in the jobmanager logs:
message=Forbidden: may not specify more than 1 volume type, reason=FieldValueForbidden, additionalProperties={}), StatusCause(field=spec.containers[0].volumeMounts[0].name, message=Not found: "local-persistent-volume"
There are also otwer volumes at the common podTemplate and I'm wondering if operator is able to properly merge main podTemplate.spec.volumes with taskmanager.podTemplate.spec.volumes.
I found inside pod-template-my-app-configmap that as I expected first volume from common podTemplate is mixed with first volume from tm specific configmap. Do you know any way to define it properly or it's an operator bug?
Solution: define common volumes twice (possibly with helm templates)