I have a DaemonSet
that creates flink task manager pods, one per each node.
Nodes
Say I have two nodes
- node-A
- node-B
Pods
the daemonSet would create
- pod-A on node-A
- pod-B on node-B
Persistent Volume Claim
- I am on AKS and want to use
azure-disk
for Persistent Storage - According to the docs : [https://docs.microsoft.com/en-us/azure/aks/azure-disks-dynamic-pv ]
- an azure disk can be associated on to single node
say I create
- pvc-A for pv-A attached to node-A
- pvc-B for pv-B attached to node-B
Question
How can I associate pod-A on node-A to use pcv-A ?
UPDATE:
After much googling, i stumbled upon that it might be better/cleaner to use a StatefulSet instead. This does mean that you won't get the features available to you via DaemonSet like one pod per node.
https://medium.com/@zhimin.wen/persistent-volume-claim-for-statefulset-8050e396cc51