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

Tinyhen project #1

Merged
merged 22 commits into from
Jul 22, 2022
Merged

Tinyhen project #1

merged 22 commits into from
Jul 22, 2022

Conversation

doniacld
Copy link
Owner

In this PR you will find:

.
├── Dockerfile
├── LICENSE
├── Makefile // To run locally, deploy and make go operations
├── README.md // Need works
├── cmd // Holds the main with a webserver, you can find documentation about it in /doc/app.md
├── deploy // All the needed manifests to deploy a cluster with a monitoring stack and an app
├── doc // 🚧 Still building the documentation, the app.md is the only one finished
├── go.mod
└── go.sum

Copy link
Collaborator

@dotdc dotdc left a comment

Choose a reason for hiding this comment

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

Didn't tested the code but here's a flat review.

Notes:

  • if possible, don't rely on any upstream resources for your demos/talks
  • you could use proper semver release tags instead of latest (update imagepullpolicy if you do that)
  • we can pimp your dashboard during the week if you want

Really nice to have:

  • logo & social preview for the project (maybe gophers x hens)

Nice to have:

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
deploy/monitoring/dashboards/temp-hum-view.json Outdated Show resolved Hide resolved
deploy/monitoring/service_monitor.yaml Show resolved Hide resolved
doc/app.md Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
deploy/deploy.sh Show resolved Hide resolved
doc/deploy.md Show resolved Hide resolved
Copy link
Collaborator

@floppyzedolfin floppyzedolfin left a comment

Choose a reason for hiding this comment

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

This is amazing. Really. Truly. Absolutely.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
.goreleaser.yaml Show resolved Hide resolved
doc/app.md Outdated Show resolved Hide resolved
doc/app.md Outdated
```

```bash
curl -v -X POST -H "Content-Type: application/json" http://localhost:10010/measure -d '{"temp": 360, "hum": 480}'
Copy link
Collaborator

Choose a reason for hiding this comment

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

a small word why we need to pass value*10 ? (In my opinion, this operation should be done before calling the service or Prometheus)

Copy link
Collaborator

Choose a reason for hiding this comment

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

This service should be ignorant of the fact that the probe returns you temperature10 and humidity10. Whatever connects the probe to the service should be in charge of making the conversion.

```bash
Creating cluster "tinyhen-test" ...
✓ Ensuring node image (kindest/node:v1.24.0) 🖼
✓ Preparing nodes 📦
Copy link
Collaborator

Choose a reason for hiding this comment

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

ERROR: failed to create cluster: command "docker run --name tinyhen-control-plane --hostname tinyhen-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=tinyhen --net kind --restart=on-failure:1 --init=false --publish=0.0.0.0:80:80/TCP --publish=0.0.0.0:443:443/TCP --publish=127.0.0.1:42247:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.24.0@sha256:406fd86d48eaf4c04c7280cd1d2ca1d61e7d0d61ddef0125cb097bc7b82ed6a1" failed with error: exit status 125 Command Output: 473b259f899ff1a5e812dcbfeb777dfba22cda1a8365782d905407e6d6f10dd9 docker: Error response from daemon: driver failed programming external connectivity on endpoint tinyhen-control-plane (cc891218944e96f4a76863a32382831877740bc140bac4c5172e3049d80d594f): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use.

(and

github.com/doniacld/tiny-hen  dev ✔
▶ lsof -i :80

github.com/doniacld/tiny-hen  dev ✔
▶

)

Copy link
Owner Author

Choose a reason for hiding this comment

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

🤔

.gitignore Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
doc/deploy.md Outdated Show resolved Hide resolved
@doniacld doniacld merged commit d123e78 into main Jul 22, 2022
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.

None yet

3 participants