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

Deploying a cluster with different repository/version fails on pull

Open carlosedp opened this issue 7 years ago • 3 comments

I'm deploying an etcd-operator on ARM64 (compiled and built my own images) but when trying to deploy the etcd cluster with the Google provided etcd images from gcr.io/google-containers/etcd-arm64, I specify the image version "3.2.18" but etcd-operator adds a "v" to the version trying to pull gcr.io/google-containers/etcd-arm64:v3.2.18 failing because gcr doesn't prefix the versions with "v".

I understand this was modeled after CoreOS image store on Quay where the images have the "v" after before the SemVer but it would be more flexible if the repository and version could just be concatenated.

carlosedp avatar May 04 '18 17:05 carlosedp

Have the exact same issue here...

Also, when using private repo + auth, we need to add to the Deployment Spec :

"imagePullSecrets": [
          {
            "name": "your-auth-secret"
          }
        ],

Which is not taken care of in the PodPolicy spec of the etcdCluster (I could provide a patch for this and the v issue above if maintainers agree for this change.

Thanks

prune998 avatar Apr 16 '19 18:04 prune998

Will also work on a PR to support imagePullSecrets

prune998 avatar Apr 17 '19 13:04 prune998

The ImagePullSecrets can be set in a ServiceAccount as described in https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account

Would it be a better solution to allow to set a ServiceAccount in the etcdCluster resource ?

prune998 avatar Apr 17 '19 13:04 prune998