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

A detached container cannot be accessed (at least with Kubernetes backend) #4627

Open
3 tasks done
stevapple opened this issue Dec 27, 2024 · 2 comments
Open
3 tasks done
Labels
backend/kubernetes bug Something isn't working

Comments

@stevapple
Copy link
Contributor

stevapple commented Dec 27, 2024

Component

agent

Describe the bug

A detached container cannot be accessed by its name, making it unusable.

Steps to reproduce

  1. Install Woodpecker and configure Kubernetes backend;
  2. Run a detached step and access it in following steps with its name;
  3. See "bad DNS name" or similar reports.

Expected behavior

As documented, a detached step should behave like a service. If it cannot be accessed by DNS, it is not capable of replacing service.

System Info

{
    "source": "https://github.com/woodpecker-ci/woodpecker",
    "version": "2.8.0"
}

Additional context

#3411 should be favorable...

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@stevapple stevapple added the bug Something isn't working label Dec 27, 2024
@stevapple stevapple changed the title A detached container cannot be access (at least with Kubernetes backend) A detached container cannot be accessed (at least with Kubernetes backend) Dec 27, 2024
@qwerty287
Copy link
Contributor

Is there a reason to not use a service?

@stevapple
Copy link
Contributor Author

@qwerty287 Our main service needs to start after all other services are ready, and we're now using a wait step for it.

If we want to use service, the only way is to allow a service to depend on a step, or support health check and dependency between services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend/kubernetes bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants