-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(cardano-node-api): add loadbalancer and secret support for TLS #73
Conversation
verbotenj
commented
Jan 9, 2025
- Add support to adjust Service type to LoadBalancer and ports
- Add Secret support for TLS configuration
- Fix selector matcher to exclude version labels (immutable) during helm upgrade
- Adjust the Service selector to align with Pod labels
5fcb56c
to
cd36720
Compare
charts/cardano-node-api/values.yaml
Outdated
secret: | ||
enabled: false | ||
tlsKey: "" | ||
tlsCrt: "" |
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.
This would probably be better like the following:
tls:
enabled: true
key: foo
cert: foo
It's less awkward than secret.enabled
for things like setting the HTTPS scheme on the health check
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 had to add the check back. The alternative would be generating a new key/cert pair.
{"level":"fatal","timestamp":"2025-01-09T03:39:56Z","caller":"cardano-node-api/main.go:113","msg":"failed to start gRPC: tls: failed to find any PEM data in certificate input","stacktrace":"main.main\n\t/app/cmd/cardano-node-api/main.go:113\nruntime.main\n\t/usr/lib/go/src/runtime/proc.go:272"}
7e82023
to
18cc749
Compare
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "cardano-node-api.fullname" . }}-wildcard-tls |
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.
The wildcard
doesn't really make sense in this resource name
charts/cardano-node-api/values.yaml
Outdated
secret: | ||
enabled: false | ||
tlsKey: foo | ||
tlsCrt: foo |
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.
We should probably have these default to an empty string (or not be defined at all). The foo
from my previous comment was just because I was being lazy typing 😁
18cc749
to
06bc188
Compare
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
06bc188
to
c2af95b
Compare