The official Kubernetes operator for etcd.
Go to file
Iván Valdés Castillo 43ef3858f0
Merge pull request #219 from etcd-io/dependabot/go_modules/tools/mod/github.com/golangci/golangci-lint/v2-2.5.0
chore(deps): Bump github.com/golangci/golangci-lint/v2 from 2.4.0 to 2.5.0 in /tools/mod
2025-09-29 20:31:25 +00:00
.devcontainer Update dev container to Go 1.24 2025-02-28 15:33:57 -08:00
.github chore(deps): Bump actions/github-script from 7.0.1 to 8.0.0 2025-09-08 16:53:22 +00:00
api/v1alpha1 Merge remote-tracking branch 'upstream' into feat-podspec-annotations 2025-09-03 17:34:54 +08:00
cmd Add reconciler for client,server,peer certificate 2025-09-25 23:47:45 +05:30
config Add e2e tests for certificates and its secrets 2025-09-25 23:48:52 +05:30
dist chore: remove deprecated install.yaml file 2025-07-09 00:16:37 +08:00
docs docs: update API reference for PodTemplate and PodMetadata 2025-09-09 14:26:12 +08:00
hack Init etcd-operator using kubebuilder 2024-10-31 20:01:08 +00:00
internal Add reconciler for client,server,peer certificate 2025-09-25 23:47:45 +05:30
pkg/certificate upgrade lint to v2 2025-08-29 19:04:01 +08:00
scripts Add release script 2025-03-14 22:53:13 -07:00
test Add e2e tests for certificates and its secrets 2025-09-25 23:48:52 +05:30
tools/mod chore(deps): Bump github.com/golangci/golangci-lint/v2 in /tools/mod 2025-09-22 16:29:59 +00:00
.dockerignore Init etcd-operator using kubebuilder 2024-10-31 20:01:08 +00:00
.gitignore feat: add api docs 2024-12-28 16:56:29 +08:00
.golangci.yml upgrade lint to v2 2025-08-29 19:04:01 +08:00
CONTRIBUTING.md update template files for repo specific info 2024-08-07 11:45:46 +05:30
Dockerfile chore(deps): Bump golang from `6ad9415` to `c4bc074` 2025-09-15 17:53:36 +00:00
LICENSE Initial commit 2024-08-07 11:34:19 +05:30
Makefile add go mod tidy check 2025-09-10 14:13:27 +08:00
OWNERS Add ivanvc as reviewer 2025-02-19 17:09:56 -08:00
PROJECT Change the api group from clusters.etcd.io to operator.etcd.io 2024-11-22 15:50:23 +00:00
README.md chore: bump golang to 1.24.1 2025-03-08 08:12:17 -05:00
RELEASE.md Initial commit 2024-08-07 11:34:19 +05:30
SECURITY.md Initial commit 2024-08-07 11:34:19 +05:30
SECURITY_CONTACTS update template files for repo specific info 2024-08-07 11:45:46 +05:30
code-of-conduct.md Initial commit 2024-08-07 11:34:19 +05:30
go.mod chore(deps): Bump the etcd group with 4 updates 2025-09-29 16:17:36 +00:00
go.sum chore(deps): Bump the etcd group with 4 updates 2025-09-29 16:17:36 +00:00

README.md

etcd-operator

The official Kubernetes operator for etcd.

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this project at:

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Getting Started

Prerequisites

  • go version v1.24+
  • docker version 17.03+.
  • kubectl version v1.11.3+.
  • Access to a Kubernetes v1.11.3+ cluster.

To Deploy on the cluster

Build and push your image to the location specified by IMG:

make docker-build docker-push IMG=<some-registry>/etcd-operator:tag

NOTE: This image ought to be published in the personal registry you specified. And it is required to have access to pull the image from the working environment. Make sure you have the proper permission to the registry if the above commands dont work.

Install the CRDs into the cluster:

make install

Deploy the Manager to the cluster with the image specified by IMG:

make deploy IMG=<some-registry>/etcd-operator:tag

NOTE: If you encounter RBAC errors, you may need to grant yourself cluster-admin privileges or be logged in as admin.

Create instances of your solution You can apply the samples (examples) from the config/sample:

kubectl apply -k config/samples/

NOTE: Ensure that the samples has default values to test it out.

To Uninstall

Delete the instances (CRs) from the cluster:

kubectl delete -k config/samples/

Delete the APIs(CRDs) from the cluster:

make uninstall

UnDeploy the controller from the cluster:

make undeploy

Project Distribution

Following are the steps to build the installer and distribute this project to users.

  1. Build the installer for the image built and published in the registry:
make build-installer IMG=<some-registry>/etcd-operator:tag

NOTE: The makefile target mentioned above generates an 'install.yaml' file in the dist directory. This file contains all the resources built with Kustomize, which are necessary to install this project without its dependencies.

  1. Using the installer

Users can just run kubectl apply -f to install the project, i.e.:

kubectl apply -f https://raw.githubusercontent.com/<org>/etcd-operator/<tag or branch>/dist/install.yaml

Contributing

// TODO(user): Add detailed information on how you would like others to contribute to this project

NOTE: Run make help for more information on all potential make targets

More information can be found via the Kubebuilder Documentation