Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

etcd image in the CR Etcdcluster #2104

Closed
sanamsarath opened this issue Jul 24, 2019 · 2 comments
Closed

etcd image in the CR Etcdcluster #2104

sanamsarath opened this issue Jul 24, 2019 · 2 comments

Comments

@sanamsarath
Copy link

can the etcd image that etcd-operator pulls during runtime be provided by the user??

In our company we have a restriction of pulling external images, so a copy of stable etcd docker image is saved in our internal repository with different name(our company specific standard name). Is there way that I can direct etcd-operator to pull our local image ??

I don't see any options other than size and version in CRD(EtcdCluster).

If this does't exist now, can this functionality be supported in future??

Thanks.

@nvtkaszpir
Copy link

nvtkaszpir commented Aug 3, 2019

This is possible, example below:

kind: "EtcdCluster"
metadata:
  name: "etcd-custom"
  ## Adding this annotation make this cluster managed by clusterwide operators
  ## namespaced operators ignore it
  # annotations:
  #   etcd.database.coreos.com/scope: clusterwide
spec:
  size: 3
  repository: "quay.io/kaszpir/etcd"
  version: "3.2.13"

Notice the version in spec (ot does not have a v) and the container tag (tag has v) https://quay.io/repository/kaszpir/etcd?tab=tags

for more details see https://github.com/coreos/etcd-operator/blob/master/pkg/apis/etcd/v1beta2/cluster.go#L80

Also see #1960

@sanamsarath
Copy link
Author

@nvtkaszpir Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants