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 make k8s/metrics/jaeger/deploy failure #2077

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

kmrmt
Copy link
Contributor

@kmrmt kmrmt commented Jun 16, 2023

Description:

When running make k8s/metrics/jaeger/deploy, in my environment, executing kubectl apply -f k8s/metrics/jaeger/jaeger.yaml fails with errors below.

Error from server (InternalError): error when creating "k8s/metrics/jaeger/jaeger.yaml": Internal error occurred: failed calling webhook "mjaeger.kb.io": Post "https://jaeger-operator-webhook-service.default.svc:443/mutate-jaegertracing-io-v1-jaeger?timeout=10s": dial tcp 10.43.187.78:443: connect: connection refused

I watched logs, but I could not find the related error.
So it is my opinion, even if it checks the condition using kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=jaeger-operator --timeout=60s, the endpoint will not be ready depending on the performance of the computer.

Finally, in my environment, it could deploy in less than 3 seconds in most situation. And, to be sure, I estimated the buffer to be 5 seconds.

Related Issue:

Versions:

  • Go Version: 1.20.5
  • Docker Version: 24.0.2
  • Kubernetes Version: 1.22.0
  • NGT Version: 2.0.12

Checklist:

Special notes for your reviewer:

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@kpango
Copy link
Collaborator

kpango commented Jun 19, 2023

I think it would be better to use curl and send an Empty Body and wait for a 400 Badrequest to be returned.
FYI: https://github.com/kubernetes-sigs/controller-runtime/blob/main/pkg/webhook/admission/http.go#L56

@cloudflare-pages
Copy link

cloudflare-pages bot commented Jun 19, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: db0e0fc
Status: ✅  Deploy successful!
Preview URL: https://e90134fc.vald.pages.dev
Branch Preview URL: https://bugfix-makefile-k8s-jaeger-d.vald.pages.dev

View logs

Copy link
Collaborator

@kpango kpango left a comment

Choose a reason for hiding this comment

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

LGTM!!

@vankichi vankichi requested review from a team, hlts2 and ykadowak and removed request for a team June 20, 2023 05:42
Copy link
Contributor

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

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

LGTM!

@kmrmt
Copy link
Contributor Author

kmrmt commented Jun 26, 2023

/rebase

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by kmrmt for branch: bugfix/makefile/k8s-jaeger-deployment-failure

@vdaas-ci
Copy link
Collaborator

[REBASE] Failed to rebase.

@kmrmt kmrmt force-pushed the bugfix/makefile/k8s-jaeger-deployment-failure branch from 67d5660 to db0e0fc Compare June 26, 2023 05:13
@vankichi vankichi merged commit 3a866be into main Jun 26, 2023
13 checks passed
@vankichi vankichi deleted the bugfix/makefile/k8s-jaeger-deployment-failure branch June 26, 2023 05:57
@hlts2 hlts2 mentioned this pull request Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants