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 failing traefik install #34

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Oct 3, 2021

This action has started failing with modern k3s versions. I verified this by re-running our tests manually on current HEAD. I think it is related to how they install Traefik v2 and how they install traefik in general now - via a HelmChart CRD and a HelmChart controller that starts up Job resources to install the chart.

This is a quite simple and robust workaround I think.

Closes #32.


I have three PRs open that will cause merge conflicts with each other at the moment 😱

@manics I suggest this action plan:

  1. Review -> merge this bugfix PR (Fix failing traefik install #34).
  2. Rebase Group emitted logs for readability #31 and resolve merge conflicts.
  3. Review -> merge Group emitted logs for readability #31.
  4. Add changelog for 1.2.0, and cut a release.
  5. Rebase Bump calico 3.17 to 3.20 - drop support for k8s 1.16 #29 and resolve merge conflicts.
  6. Review -> merge Bump calico 3.17 to 3.20 - drop support for k8s 1.16 #29.
  7. Add changelog for 2.0.0, and cut a release.

What do you think?

@consideRatio consideRatio added the bug Something isn't working label Oct 3, 2021
@consideRatio
Copy link
Member Author

@manics I rebased this on main after the calico bump was merged.

The action fail using some k8s versions without this in current latest
release. I think it is related to how they install Traefik v2 and
traefik in general now via a HelmChart CRD.

To handle this, we can add these wait steps and allow them to fail.
@@ -170,6 +170,11 @@ runs:
kubectl rollout status --watch --timeout 300s deployment/metrics-server -n kube-system
fi
if [[ "${{ inputs.traefik-enabled }}" == true ]]; then
# NOTE: Different versions of k3s install traefik in different ways,
# by waiting for these jobs if they exist, we will be fine no
# matter what.
Copy link
Member

Choose a reason for hiding this comment

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

Do you know which versions use which method? If so it'd be helpful to include a comment here in case someone needs to debug other problems, and also to ease cleanup when we next drop an old K3s version.

Copy link
Member Author

Choose a reason for hiding this comment

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

@manics I don't, I think its different patch versions of k3s releases rather than specific k8s versions etc.

I saw k8s 1.17 and 1.19 fail but 1.18 succeed if i recall correctly etc, and some installed Traefik v1, other v2, some installed via a HelmChart resource, others didn't.

Copy link
Member

Choose a reason for hiding this comment

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

That sounds a bit messed up 😐

Copy link
Member Author

Choose a reason for hiding this comment

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

There was no clear information when they changed HOW they install traefik, only that they install v2 in some later versions, but they started adopting a different way to install traefik in earlier versions as well so I don't see myself able to answer this so well.

@manics
Copy link
Member

manics commented Oct 4, 2021

If the Example workflow test fails again it can be ignored until after v2 is tagged, since it's just testing v1 at the moment

@consideRatio
Copy link
Member Author

If the Example workflow test fails again it can be ignored until after v2 is tagged, since it's just testing v1 at the moment

Ah yepp!

@manics manics merged commit 3f3f6b7 into jupyterhub:main Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of traefik broken
2 participants