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

GitOps Run fails on macOS using local k3d cluster: can't mount /etc/machine-id #3956

Closed
MisterWS opened this issue Aug 18, 2023 · 2 comments
Closed
Labels
bug Something isn't working documentation Improvements or additions to documentation team/wild-watermelon user-guide Improvements to docs at https://docs.gitops.weave.works/

Comments

@MisterWS
Copy link

Describe the bug

When running gitops beta run on macOS using a k3d local cluster, setup fails at this step:

► creating HelmRelease flux-system/fluent-bit
► waiting for HelmRelease flux-system/fluent-bit to be ready
✗ HelmRelease flux-system/fluent-bit failed to become ready
✗ Fluent Bit installation failed: timed out waiting for the condition
Error: timed out waiting for the condition

On further investigation, this appears to be because the fluent-bit pod is trying to mount the HostPath /etc/machine-id - which does not exist inside the k3d server container image (docker.io/rancher/k3s:v1.27.4-k3s1, in my particular case).

Environment

  • GitOps version: 0.30.0
  • Flux version: v2.0.1
  • Kubernetes version: k3s:v1.27.4-k3s1
  • macOS version: Ventura 13.5
  • colima version (used as Docker dev environment): 0.5.5

To Reproduce
Steps to reproduce the behavior:

  1. Create a k3d cluster: k3d cluster create flux-test
  2. Run GitOps Run against chosen directory: gitops beta run . --context k3d-flux-test --no-session --no-bootstrap

Expected behavior

GitOps Run should create resources needed.

Actual Behavior

Error above is shown.

Additional Context (screenshots, logs, etc)

@MisterWS MisterWS added the bug Something isn't working label Aug 18, 2023
@MisterWS
Copy link
Author

To workaround this, I have included the following section in my k3d config file:

volumes:
  - volume: /etc/machine-id:/etc/machine-id
    nodeFilters:
      - server:*
      - agent:*

@LappleApple LappleApple added the user-guide Improvements to docs at https://docs.gitops.weave.works/ label Aug 18, 2023
@LappleApple LappleApple added the documentation Improvements or additions to documentation label Aug 31, 2023
@LappleApple
Copy link
Contributor

LappleApple commented Sep 5, 2023

Hello @MisterWS, thanks for sharing your workaround. We've included it in our user docs here with a link back to this issue so you get credit. Let us know if you have any other issues or if you'd like to contribute to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation team/wild-watermelon user-guide Improvements to docs at https://docs.gitops.weave.works/
Projects
None yet
Development

No branches or pull requests

3 participants