Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect name for etcd cluster endpoint in documentation #237

Open
logwiser opened this issue Dec 29, 2024 · 0 comments
Open

incorrect name for etcd cluster endpoint in documentation #237

logwiser opened this issue Dec 29, 2024 · 0 comments

Comments

@logwiser
Copy link

logwiser commented Dec 29, 2024

There seems to be an issue with the documentation

https://github.com/GreptimeTeam/greptimedb-operator/blob/main/examples/README.md
says

The following examples suppose that you have installed the etcd cluster in the etcd namespace with the service endpoint etcd.etcd-cluster.svc.cluster.local:2379

If the namespace is etcd, the endpoint is expected to have a DNS suffix of etcd.svc.cluster.local instead

Thus by extension, the example in https://github.com/GreptimeTeam/greptimedb-operator/blob/main/examples/cluster/basic/cluster.yaml is a bit incorrect.

Here is an example that worked better for me

Step-1

Create an etcd cluster in namespace called meta

helm upgrade --install \
	etcd-greptime oci://registry-1.docker.io/bitnamicharts/etcd \
--set replicaCount=3 \
--set auth.rbac.create=false \
--set auth.token.enabled=false \
--set serviceAccount.create=true \
--set serviceAccount.name=demogdb \
-n meta

Note the etcd endpoint, which comes out to be etcd-greptime.meta.svc.cluster.local:2379
etcd-greptime comes from the helm name and meta comes from the specified namespace

Step-2

Deploy greptimeDB in the namespace called greptime-basic

---
apiVersion: v1
kind: Namespace
metadata:
  name: greptime-basic
  labels:
    mode: basic

---
apiVersion: greptime.io/v1alpha1
kind: GreptimeDBCluster
metadata:
  name: basic
  namespace: greptime-basic
spec:
  base:
    main:
      image: greptime/greptimedb:latest
  frontend:
    replicas: 1
  meta:
    replicas: 1
    etcdEndpoints:
      - "etcd-greptime.meta.svc.cluster.local:2379"
  datanode:
    replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant