Repository navigation
cmd/k8s-operator: allow to install operator via helm - #9920
Conversation
b09ce4b to
cba579e
Compare
| hostname: "tailscale-operator" | ||
| nodeSelector: | ||
| kubernetes.io/os: linux | ||
| resources: {} |
There was a problem hiding this comment.
I took out the resource request that we had. I think it does not make sense to have these values here- the actual requests will depend on the amount and size of resources that the operator needs to parse, so users would have to figure it out for themselves anyway. These requests were a lot higher than a user who just wants to set up a couple proxies would need and were making the deployment to fail on clusters that don't have a large amount of free resources.
For reference bitnami charts, also don't preset resource requests/limits on their charts https://github.com/bitnami/charts/blob/main/bitnami/cert-manager/values.yaml#L129-L131
There was a problem hiding this comment.
we would need to update docs
There was a problem hiding this comment.
will do after this merges
5c28fc2 to
1c947f6
Compare
|
Updates ENG-1837 |
ead5ed3 to
98ab65c
Compare
| version: 0.1.0 | ||
|
|
||
| # This is the version number of the application being deployed. This version number should be | ||
| # incremented each time you make changes to the application. Versions are not expected to | ||
| # follow Semantic Versioning. They should reflect the version the application is using. | ||
| # It is recommended to use it with quotes. | ||
| appVersion: "unstable" |
There was a problem hiding this comment.
@irbekrm @mayakacz @rhealitycheck any thoughts on how we version these?
Should we just follow the tailscale versioning?
There was a problem hiding this comment.
@maisem
https://helm.sh/docs/topics/charts/
version: A SemVer 2 version (required)
appVersion: The version of the app that this contains (optional). Needn't be SemVer. Quotes recommended.
appVersion should likely match the latest stable operator version, so v1.50.1 for the container now. If this changes, bump the patch component of version
version is SemVer for the chart itself. i.e., bump the main version if you're breaking backward compatibility. Bump minor/patch when making any change to the chart. 0.1.0 would be appropriate for the first merge (0.x.y indicating that it's not really done). This is (mostly) independent of appVersion (exception noted above). For example, if the entire chart got refactored, that's probably a major version change, but it wouldn't be a tailscale major version. Conversely, there might not be any structural changes to the chart for a very long time, making it forward compatible with tailscale v3.1.2.
Here's a couple of examples:
There was a problem hiding this comment.
Should we just follow the tailscale versioning?
Yes, previously I have bumped this every time I release a new chart version to make sure the right images get pulled.
This is also the tag of the operator and proxy images so I've set this to unstable here because that's what we currently have in the plain manifests.
It doesn't really matter what versions are there in this PR because we aren't actually going to publish with these versions.Once we set up infra to actually publish charts we'll have to have a discussion about publishing flow and versioning. And before we publish we'll have to bump these anyway.
There was a problem hiding this comment.
wrt to the chart version, I am not sure whether we are likely to be publishing new chart versions outside of Tailscale release flow. If we do not, then having the same app and chart version is fine. We did that for cert-manager for example.
There was a problem hiding this comment.
Actually, thinking about it, we shouldn't need to ever bump it here. It should be ok that both appVersion and version are dummy values and we set them at publish time helm package <path> --app-version v0.52.0 --version v0.52.0.
See i.e https://github.com/cert-manager/cert-manager/blob/master/deploy/charts/cert-manager/Chart.template.yaml#L3-L5
I've set the proxy tag in values.yaml to "" to ensure that unstable does not override appVersion that we default to.
98ab65c to
ced0293
Compare
Initial helm manifests. Updates #9222 Signed-off-by: Irbe Krumina <[email protected]> Co-authored-by: Maisem Ali <[email protected]> Signed-off-by: Irbe Krumina <[email protected]>
ced0293 to
895a5ce
Compare
|
|
||
| type: application | ||
|
|
||
| maintainers: |
There was a problem hiding this comment.
Not sure if we have some kind of 'maintainers' email address that we could put here
Added ability to specify a digest for operator/proxy images and added a couple things (keywords etc) to Chart.yaml |
Initial helm manifests with basic configurability.
To try this out:
helm package ./cmd/k8s-operator/deploy/chart(users won't have to do this once we have published charts)Secretwith operator oauth creds or put the creds in ./cmd/k8s-operator/deploy/chart/values.yaml (or create a new values file)helm install operator -n tailscale -f <path-to-values-file> tailscale-operator-0.1.0.tgzThe next step will be to set up some basic infra to serve the chart as well as a flow to publish new chart versions.
Updates #9222
There will definitely be lots of additional configuration options that we'll want to add- this PR does not aim to cover them all, but rather to get the initial template in so that we have something.