forked from balena-io/open-balena
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
Kubernetes support #2
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…alena and component to the component
…t connections to a VPN server
Update open-balena-api from 0.119.5 to 0.139.0 Update open-balena-registry from 2.16.0 to 2.16.1 Update open-balena-vpn from 9.17.4 to 9.17.11 Change-type: minor
minor: Update API, registry and VPN services
It's used in the docker-compose version of openBalena, so we'll use it too
By doing this, the VPN will register itself to the openBalena API using it's local Cluster IP of the pod. When running multiple VPN services, it'll forward the request to the right VPN pod using the local Kubernetes network
With PROXY protocol enabled, setting environment variables and releases aren't being pushed directly to devices. When it's not used, every change and/or release is directly pushed to the devices
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The first "official" Kubernetes support using a Helm chart.
It's "official" in the sense that I'm more confident in this Helm chart than the last one, because of it's features and a better upgrade path in the future (provided that there aren't breaking changes in openBalena itself).
Keep in mind, this Kubernetes Helm chart is made with the added thought that you have knowledge about Kubernetes and Helm
What's new
tunnel.<domain>
is supported via an added Ingress TLS rule, which is proxied to HAProxy, which adds the TLS to the TCP serviceKnown issues
Breaking changes
values.yaml
is changed. This is because it now uses the same format as many Helm charts.Upgrading
Upgrading is simple and hard at the same time. As I mentioned, a simple
helm upgrade
will not do the trick, because you've to change yourvalues.yaml
first, and after you've done that, you'll get errors from Helm itself.I hoped I could come up with a better upgrade path, but openBalena isn't out of beta yet and the first Helm Chart isn't an official Helm Chart. I did the best I could, but making these breaking changes will improve upgrades later on.
So the upgrade path I chose was as follows:
config/kubernetes.yaml
kubernetes/values.template.yaml
and paste it inconfig/kubernetes.yaml
config/k8s/settings.yaml
hostname
,config.email
etc) in the right variable ofconfig/kubernetes.yaml
. Every environment variable is added as a comment next to the variable's value in the oldsettings.yaml
api.replicas
set to0
(because of migrations later on)api.replicas
to1
or more and upgrade the Helm ChartI've tested this approach with a openBalena cluster with more than 200 devices and all seems to go well!
Need help?
If you need help, please open a post on the Balena Forums - openBalena section or react in the Kubernetes for scaling topic