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

fix: etcd install fail #156

Merged
merged 6 commits into from
Sep 30, 2023

Conversation

daviderli614
Copy link
Member

gtctl version: v0.1.0-beta.3
kind kubernetes version: 1.27.3

When running gtctl locally, The following error message appears:

./gtctl cluster create mycluster

Creating GreptimeDB cluster 'mycluster' in namespace 'default' ...
  ✓ Installing greptimedb-operator successfully 🎉
  ✗ Installing etcd cluster failed 😵‍💫
Error: error while applying helm chart: the server could not find the requested resource
error while applying helm chart: the server could not find the requested resource

Run ./gtctl cluster create mycluster -v=5 and observe the PodDisruptionBudget yaml file the resource apiVersion is policy/v1beta1, but the policy/v1beta1 API version of PodDisruptionBudget is no longer served as of k8s v1.25. We should use the policy/v1 version of apiVersion.

By getting the kubernetes version, inject to helm client, can run gtctl successfully:

./bin/gtctl cluster create mycluster
Creating GreptimeDB cluster 'mycluster' in namespace 'default' ...
  ✓ Installing greptimedb-operator successfully 🎉
  ✓ Installing etcd cluster successfully 🎉
  ✓ Installing GreptimeDB cluster successfully 🎉

Now you can use the following commands to access the GreptimeDB cluster:

MySQL >
$ kubectl port-forward svc/mycluster-frontend -n default 4002:4002 > connections-mysql.out &
$ mysql -h 127.0.0.1 -P 4002

PostgreSQL>
$ kubectl port-forward svc/mycluster-frontend -n default 4003:4003 > connections-pg.out &
$ psql -h 127.0.0.1 -p 4003

Thank you for using GreptimeDB! Check for more information on https://greptime.com. 😊

Invest in Data, Harvest over Time. 🔑

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daviderli614 daviderli614 merged commit 5ae1c8c into GreptimeTeam:develop Sep 30, 2023
6 checks passed
@daviderli614 daviderli614 deleted the fix/etcd-install-fail branch September 30, 2023 11:13
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

Successfully merging this pull request may close these issues.

3 participants