i want to use restart policy as Always. When my spark streaming app fails it should start automatically.
i have tried setting policy in podTemplate but it is not working.
apiVersion: v1
Kind: Pod
metadata:
labels:
my-label: driver-template-label-value
spec:
containers:
- name: test-driver-container
image: will-be-overwritten
restartPolicy: Always
labels are setting given in template but restart policy is overriding by spark.