Is there a way to share files among pods without persistence?
With persistence I just use ReadWriteMany
accessMode
and mount it to somewhere:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: my-pvc
spec:
accessModes:
- ReadWriteMany
storageClassName: some-sc
resources:
requests:
storage: 1Gi
I need to do something like this without PVC or with PVC that uses a storage-class which just mimic persistence by using only the memory.
I could solve this with a different pod which redistributes the file by using K8s api.
But I feel it a bit overwhelming for a simple task like that.
Edit: using configmap
is out of question because the file should be writable.