AKS k8s doesn't supports new keyword ReadWriteOncePod for access mode for Volumes and Volume claims

Artem 21 Reputation points
2022-08-19T14:19:42.753+00:00

Hi.

I recently tried to create PersistentVolumeClaim with accessModes set to ReadWriteOncePod, but no lone listed version (even 24.0_preview) does nto supported it. Support chat wouldn't be able to resolve this issu either.

PersistentVolumeClaim is a new keyword, anounced in previous year (https://kubernetes.io/blog/2021/09/13/read-write-once-pod-access-mode-alpha/) and supported from Kubernetes 1.22 by the Google Docs. But Azure portal or kubectl both displaying error message:

The PersistentVolumeClaim "xnode-geth-data-volume-claim" is invalid: spec.accessModes: Unsupported value: "ReadWriteOncePod": supported values: "ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce"

Google docs just says that it is available to use https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes

About the reason:
I have an application which exclusively using data folder and cannot share it with any another instances so this new access mode ReadWriteOncePod is exactly what I need. I already have an issue when AKS scheduled 2 pods per node and it was result in constnat looping restart of 2nd Pod in a same node.

Best Regards

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,457 questions
{count} votes

Accepted answer
  1. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2022-08-20T02:59:12.507+00:00

    Hello @Artem ,
    Got an update from Product team that, as the ReadWriteOncePod is still an alpha feature even in k8s 1.25 release, it’s disabled by default on AKS. In most cases, AKS only supports beta feature which is enabled by default , we will check whether this feature would go beta in 1.26 which is end of this year.

    Regards,
    Shiva.


1 additional answer

Sort by: Most helpful
  1. Artem 21 Reputation points
    2022-08-22T03:47:02.363+00:00

    Helllo @shiva patpi .

    Thank you for the response.

    After reviewing all the information that I have I ended up with the idea that ReadWriteOncePod in my case wouldn't be working as well, because I will have only a single claim.

    Next I switched the way of how I create the application from Deployment to StatefulSet, since it has templates of volume claims. Plus my current application has to be in relation 1 Pod - 1 Node, so I applied affinity rules and it seems like it working well. But I guess if not the latest I probably will have a problems further.

    Thanks,
    Artem

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.