no matches for etcd.database.coreos.com

339 views
Skip to first unread message

khenaidoo Nursimulu

unread,
Nov 16, 2017, 12:36:35 PM11/16/17
to etcd-dev
Hello,

In my local kubernetes cluster i am trying to start an etcd cluster but keep getting the following errors when running "kubectl create -f etcd-cluster.yml":

error: unable to recognize "etcd-cluster.yml": no matches for etcd.database.coreos.com/, Kind=EtcdCluster


The content of the etcd-cluster.yml file is:

kind: "EtcdCluster"
metadata:
  name: "example-etcd-cluster"
spec:
  size: 3
  version: "3.1.8"

I am running kubernetes 1.8.    I ran the deploy and that works.  My deploy file is:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: etcd-operator
spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: etcd-operator
    spec:
      containers:
      - name: etcd-operator
        command:
        - etcd-operator
        env:
        - name: MY_POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: MY_POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name

Any suggestions of what could be wrong?

Thanks
Khen

Seán C. McCord

unread,
Nov 16, 2017, 1:23:41 PM11/16/17
to khenaidoo Nursimulu, etcd-dev
Have you checked the logs of the etcd-operator?

--
You received this message because you are subscribed to the Google Groups "etcd-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etcd-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Seán C McCord
CyCore Systems, Inc

khenaidoo Nursimulu

unread,
Nov 16, 2017, 2:39:59 PM11/16/17
to etcd-dev
The etcd-operator indicated that the user "system:serviceaccount:default:default" does not have the permission to get the endpoints.  After setting the rbac (running the "etcd-operator/example/rbac/create_role.sh") i was able to get the cluster working.  

Thanks.
Khen
Reply all
Reply to author
Forward
0 new messages