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

Write instructions how to run controller locally #23

Closed
sircthulhu opened this issue Mar 15, 2024 · 1 comment · Fixed by #31
Closed

Write instructions how to run controller locally #23

sircthulhu opened this issue Mar 15, 2024 · 1 comment · Fixed by #31
Milestone

Comments

@sircthulhu
Copy link
Member

sircthulhu commented Mar 15, 2024

We need to write section in doc explaining how to run project in local Kind cluster.
currently blocked by #11

Steps to run projects:

  • kind create cluster
  • switch kubectl context to kind (important! otherwise you can damage production cluster)
  • install cert-manager using helm or kustomize cert-manager documentation
  • make docker-build to build docker image with tag controller:latest
  • kind load docker-image controller:latest to load image into cluster
  • make install (this installs CRD)
  • make deploy (this deploys controller, roles, certificates)

After making changes in code to redeploy them run

  • make docker-build, this will regenerate manifests and build image
  • make deploy to change YAML manifests if necessary
  • kubectl rollout restart -n etcd-operator-system deploy/etcd-operator-controller-manager
@Kirill-Garbar
Copy link
Collaborator

docker tag controller:latest ghcr.io/aenix-io/etcd-operator:latest
kind load docker-image ghcr.io/aenix-io/etcd-operator:latest

instead of
kind load docker-image controller:latest

Kirill-Garbar added a commit that referenced this issue Mar 18, 2024
fixes #23 
fixes #30

---------

Co-authored-by: Kirill Ilin <stitch14@yandex.ru>
Co-authored-by: Kirill Garbar <kirill@garbar.pro>
@kvaps kvaps added this to the v0.0.1 milestone Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants