coreos / etcd-operator

etcd operator creates/configures/manages etcd clusters atop Kubernetes

Home Page:https://coreos.com/blog/introducing-the-etcd-operator.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

etcd image in the CR Etcdcluster

sanamsarath opened this issue · comments

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.

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