Could you share how you are starting the Flink native k8s application with
pod template?

Usually it look like the following commands. And you need to have the Flink
binary on your local machine.
Please note that pod template is working with native K8s mode only. And you
could not use the "kubectl" to directly apply the pod template.

bin/flink run-application -t kubernetes-application \
        -Dkubernetes.cluster-id=my-flink-native-k8s-app \
        -Dkubernetes.container.image=flink:1.13 \
        -Djobmanager.memory.process.size=1088m \
        -Dkubernetes.jobmanager.cpu=0.5 \
        -Dkubernetes.taskmanager.cpu=0.5 \
        -Dkubernetes.rest-service.exposed.type=NodePort \
        -Dkubernetes.pod-template-file=/path/of/kubernetes-pod-template.yaml \
        local:///opt/flink/examples/streaming/StateMachineExample.jar


Best,
Yang

Priyanka Manickam <priyanka.manick...@gmail.com> 于2021年5月18日周二 下午5:24写道:

> Hi All,
>
> I have used imagePullPolicy: Never, but still i am getting error in main
> container.
>
> Could someone please help me out here
>
>
> Thanks,
> Priyanka Manickam
>
>
> On Fri, 14 May 2021, 21:00 Priyanka Manickam, <
> priyanka.manick...@gmail.com> wrote:
>
>> Hi yang,
>>
>> I was using pod template to fetch the logs to the particular repository.
>>
>> But while deploying i have got some error , says "
>> jobmanager-pod-template" is invalid : spec.containers(0).image: required
>> value.
>>
>> . And if i try to give add the image for flink-main-container. Its giving
>> image pull back of error.
>>
>> Am i proceeding in the a correct way . Because in the flink official
>> website , no image is added after the flink-main-container.
>>
>> Could you please help with this. I have also searchsd for the demo videos
>> for using the pod template with flink native kubernetes but i could not
>> able to find..If you could share any demo videos on the website it will
>> very useful for everyone.
>>
>> Good year ahead..
>>
>> Thanks,
>> Priyanka Manickam.
>>
>>
>>

Reply via email to