-
Notifications
You must be signed in to change notification settings - Fork 213
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
Adding Helm Chart for Simpler Deploy #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the initiative to add a Helm chart here! This looks like it'll be a really great way to deploy Fairwinds. I've left a few comments and questions below. At a higher level, I noticed that some of the yaml template files start with ---
while others don't. I think it would be good for that to be consistent, whether it's with or without that prefix. My personal preference is without.
If you run this config with the webhook server enabled, it'll choke due to the fact that certs aren't available. Rob, any idea what the right way to set up certificates would be? |
@robscott this chart also lacks |
@ejether Sadly neither have readiness or liveness endpoints that would work well yet. Changing the config to make that a warning would help here - on that note, rebasing on master once the config PR is merged in would make "warning" an option. @bobby-brennan Not sure why certs are an issue, they should be generated automatically with controller-runtime as it creates the validating webhook config. Unfortunately because it's creating these resources out of band, they need to be cleaned up outside of a helm delete, so maybe the issue is some older config stuck around from a previous deploy? |
b09f04a
to
65247d1
Compare
I added some liveness and readiness probes that are working. Better than nothing I think. |
Also, I'm seeing this error: |
Hey @ejether, that is a downside of the current implementation - a number of resources, including the namespace are hardcoded inside Fairwinds because it provisions its own cert, secret, and webhook config. It would be relatively straightforward to make that driven by an env var, with a default of |
I'm not going to pretend that I know what I'm doing with go, but I'm happy to take a look at this. Top of mind, is there any reason the webhook can't detect what namespace it is deployed in? https://github.com/kubernetes/client-go/blob/master/kubernetes/typed/core/v1/namespace.go#L34 Clean up is a good question that I'm interested in too but that may be for another issue. |
65247d1
to
c53f07a
Compare
@robscott is anything holding up this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey EJ, thanks for the work on this! Sorry for the delay in adding some feedback here. I think this looks really close, just a few comments.
Requested changes made. Ready to rock now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks great now, thanks for getting it in! I did just notice that there are two commits with the "adding helm chart to readme" message, but the actual content of the PR looks great to me.
6d9895c
to
43ce19c
Compare
Fixed history |
No description provided.