Alex Brekken
04/11/2023, 1:38 PMReadWriteOnce this isn’t surprising. If I use hostPath instead of a PVC, then everything works fine though I doubt that’s the recommended approach..?
Why are both pods trying to use the same PVC? Do I need to have a PVC with ReadWriteMany? (I hope not.. 🙂 ) Thanks for any help!Max Dubinin
04/11/2023, 1:40 PMAlex Brekken
04/11/2023, 1:41 PMpodTemplate:
apiVersion: v1
kind: Pod
metadata:
name: pod-template
spec:
containers:
# Do not change the main container name
- name: flink-main-container
volumeMounts:
- mountPath: /flink-data
name: flink-volume
- name: certs
mountPath: /var/ssl
volumes:
- name: flink-volume
# hostPath:
# directory location on host
# path: /tmp/flink
- name: flink-volume
persistentVolumeClaim:
claimName: flink-data-pvc
- name: certs
secret:
secretName: cfk-green-truststore-certMax Dubinin
04/11/2023, 1:45 PMtaskmanager is the worker that actually runs the job, so it makes sense for it to use the same image.
Other than that, I have no clue man, the manifest looks fine to me