milvus-operator icon indicating copy to clipboard operation
milvus-operator copied to clipboard

milvus-operator deployment does not support imagePullSecrets

Open douglarek opened this issue 10 months ago • 2 comments

Description:

  1. Why this feature is needed:

    • Sometimes, pulling images from Docker Hub can be slow in the company's environment. There is a need to replace it with the company's internally maintained image repository to accelerate the process.
  2. Current limitation:

    • The milvus-operator deployment currently lacks support for imagePullSecrets, making it challenging to authenticate and pull images from private registries. When attempting to edit the deployment to include imagePullSecrets, an error occurs indicating that the field is unrecognized.
  3. Steps to reproduce:

    • Edit the existing deployment in the milvus-operator namespace using the following command:
      kubectl edit deployment -n milvus-operator
      
    • Modify the deployment manifest to include the desired image and imagePullSecrets, as follows:
      image: 'corp.domain/xxx/milvus-operator:v0.8.6'
      imagePullSecrets:
        - name: docker-registry
      
    • Observe the error message encountered:
      # * <nil>: Invalid value: "The edited file failed validation": ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "imagePullSecrets" in io.k8s.api.core.v1.Container
      

douglarek avatar Apr 08 '24 03:04 douglarek

Sorry for the confusion. There is no issue with milvus-operator. The imagePullSecrets field should be configured one level below spec, not at the same level as containers. This was an invalid issue. I'm closing it now.

douglarek avatar Apr 09 '24 10:04 douglarek

@douglarek Yes, but it's also true that the helm chart of milvus-operator also provides a imagePullSecrets field without implementation.

haorenfsa avatar Apr 11 '24 02:04 haorenfsa

@douglarek Yes, but it's also true that the helm chart of milvus-operator also provides a imagePullSecrets field without implementation.

Came here to report this just now.

bcbrockway avatar Jun 10 '24 11:06 bcbrockway