zilliztech / milvus-operator

The Kubernetes Operator of Milvus.
https://milvus.io
Apache License 2.0
33 stars 20 forks source link

milvus-operator deployment does not support imagePullSecrets #104

Closed douglarek closed 3 weeks ago

douglarek commented 2 months ago

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 commented 2 months ago

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.

haorenfsa commented 2 months ago

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

bcbrockway commented 3 weeks ago

@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.