Configuring zot on Azure (AKS) with multiple replicas #2948
-
Hello, We support both AWS (EKS) and Azure (AKS) k8s providers. On AWS we configure zot with remote storage using s3 and it just works! On Azure, because we can't use s3, we must configure local filesystem storage and have run into different issues depending on the kind of storage class we configure. In all cases, the issues arise when multiple replicas come into play, and, in most cases, are the result of a panic from So I guess my first question is: Is local filesystem storage supported with mulitiple replicas (zot instances)? Based on this portion of the docs, we have tried storage classes using either nfs or fuse with wildly different results. As a result, we're forced to pin the replicas to 1 and essentially disable HPA (i.e., max replicas is also set to 1). Is this something to which an Issue should be opened, or are we missing something in the configuration. Here's a description of the kinds of issues we've encountered when attempting to configure the local filesystem storage with multiple replicas. NFS (Provisioner: blob.csi.azure.com):When configuring a storage class of On restart:
When hpa kicks in:
Fuse (Provisioner: blob.csi.azure.com):When configuring a storage class of
Default Storage (Provisioner: disk.csi.azure.com)Lastly, if we attempt to use our default storage class, the second replica cannot start since the the
Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Local file system using boltdb doesn't work for multiple zot instances using the same file system and/or same boltdb file. It could work if they have separate storage and each is responsible for a subset of images. There was some work done for azure support in #2221 / #2223 but it was not complete, and is far from finished. |
Beta Was this translation helpful? Give feedback.
-
Thank you @andaaron. I will monitor that issue (sorry I hadn't seen it prior to my inquiry). It might be helpful to amend the docs for local filesystem to indicate that multiple instances/replcas using the same boltdb is not supported. I have gone ahead and opened project-zot/project-zot.github.io#189 and will provide a corresponding pull request, if that proves helpful. |
Beta Was this translation helpful? Give feedback.
Local file system using boltdb doesn't work for multiple zot instances using the same file system and/or same boltdb file. It could work if they have separate storage and each is responsible for a subset of images.
There was some work done for azure support in #2221 / #2223 but it was not complete, and is far from finished.