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

[WIP] Upgrade to cert-manager from kube-lego #1162

Closed
wants to merge 32 commits into from
Closed

[WIP] Upgrade to cert-manager from kube-lego #1162

wants to merge 32 commits into from

Conversation

sgibson91
Copy link
Member

Hi all,

This is my attempt to update mybinder.org to using cert-manager instead of kube-lego, which is deprecated.

So far, I've attempted (but not deployed):

  • adding clusterissuer.yaml and _helpers.tpl files,
  • renaming secrets that contained references to kube-lego,
  • updating the staging config.

Any comments appreciated!

Fixes #1148

@manics
Copy link
Member

manics commented Sep 16, 2019

In the past I've had problems with CRDs and uses of CRDs. Basically the implementation of the CRD has to be installed before anything that defines an instance of the CRD.
https://github.com/helm/helm/blob/master/docs/chart_best_practices/custom_resource_definitions.md

The docs for the cert-manager Helm chart suggest it's even more confusing 😟:
https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html#steps

@sgibson91
Copy link
Member Author

Thanks @manics, yes @consideRatio and I ran into this issue when installing cert-manager on the Turing's BinderHub when we were in Oslo 😊 I'm more asking if I've removed anything important from the config 😱

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

I think renaming all the ingress TLS termination secrets at once could leave us throttled or temporary banned with lets encrypt as there were more than 4 or so. You could copy the existing secrets to the new name if you like to mitigate this issue, or look up lets encrypt documentation details about this as I'm certainly not certain about this being an issue or how it will behave if it is an issue.

I didn't have time to review this in depth but it is better than no review at all :) Thanks for working on this @sgibson91 !!! ❤️

BTW: How is labels typically set in this helm charts kubernetes resources? Perhaps we should mimic that rather than introducing helpers to set the labels? I think we should aim for consistency with the repo rather than consistency with other Helm charts if there is many other resources aligned to follow a certain practice within this meta helm chart.

mybinder/templates/_helpers.tpl Show resolved Hide resolved
config/staging.yaml Outdated Show resolved Hide resolved
@sgibson91
Copy link
Member Author

I think renaming all the ingress TLS termination secrets at once could leave us throttled or temporary banned with lets encrypt as there were more than 4 or so. You could copy the existing secrets to the new name if you like to mitigate this issue, or look up lets encrypt documentation details about this as I'm certainly not certain about this being an issue or how it will behave if it is an issue.

I've reverted my renaming of secrets instead.

BTW: How is labels typically set in this helm charts kubernetes resources? Perhaps we should mimic that rather than introducing helpers to set the labels? I think we should aim for consistency with the repo rather than consistency with other Helm charts if there is many other resources aligned to follow a certain practice within this meta helm chart.

I'm not sure that I follow this? @betatim @minrk @choldgraf?

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

Quick input

@sgibson91
Copy link
Member Author

As per jupyterhub/zero-to-jupyterhub-k8s#1448, if anyone wants to help out/take over this PR then they should feel free!

@sgibson91 sgibson91 closed this Oct 23, 2019
@sgibson91
Copy link
Member Author

Closing due to a new plan of attack, see #1148 (comment)

@sgibson91 sgibson91 deleted the cert-manager branch October 23, 2019 12:29
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.

Migrate mybinder.org from kube-lego to cert-manager for LetsEncrypt
4 participants