milvus-operator
milvus-operator copied to clipboard
milvus-operator deployment does not support imagePullSecrets
Description:
-
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.
-
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.
-
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
- Edit the existing deployment in the milvus-operator namespace using the following command:
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 Yes, but it's also true that the helm chart of milvus-operator also provides a imagePullSecrets
field without implementation.
@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.