pravega / zookeeper-operator

Kubernetes Operator for Zookeeper
Apache License 2.0
364 stars 203 forks source link

ImagePullSecrets added in zookeepercluster doesn't work for zookeeper intance pod #593

Open yaoyao12138 opened 7 months ago

yaoyao12138 commented 7 months ago

Description

ImagePullSecrets added in zookeepercluster doesn't work for zookeeper intance pod

For zookeeper, I keep getting the zookeeper instance pod image crash due to no imagePullSecrets binding.

# kubectl get pods -n instana-zookeeper
NAME                                  READY   STATUS             RESTARTS   AGE
zookeeper-operator-845f78f4d9-sv8zw   1/1     Running            0          20m
zookeeper-0                           0/1     ImagePullBackOff   0          20m
 # kubectl get po  zookeeper-operator-845f78f4d9-sv8zw -n instana-zookeeper -oyaml|grep imagePullSecrets -A 1
  imagePullSecrets:
  - name: instana-registry
# kubectl get po zookeeper-0 -n instana-zookeeper -oyaml|grep imagePullSecrets
nothing happened…
# kubectl get zookeepercluster -n instana-zookeeper zookeeper -oyaml|grep imagePullSecrets -A 1
    imagePullSecrets:
    - name: instana-registry

But we have configured in zookeepercluster confiugration file as follows refer to this doc and crd shows(checking in the env).

pod:
    imagePullSecrets:
      - name: instana-registry

Importance

Must-have

Location

https://github.com/pravega/zookeeper-operator/tree/master/charts/zookeeper#configuration

pod.imagePullSecrets ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images. []