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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ARM support #71
Comments
Hello, Wow, pi cluster, it sounds interesting) I guess, its very simple and i will add cross compilation into next release. |
That would be fantastic 馃槏 let me know if you will need any testing or other support. Thanks! |
i've added cross compilation, you can test operator with docker image: Also, you have to have change values for it, apply patch:
Let me know, if something go wrong. |
Great! Operator is up and running I will test it over weekend and will let you know. p.s. Have you considered multi arch docker image https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/ ? It's under experimental flag for building stage, but it works without any intervention for users. Then we don't need to do image tag patching. |
added cross complilation with docker #71
Thanks, docker buildx looks interesting. Need to check, is it working with other container-runtime systems, like podman. |
For podman building it doesn't seems to work there is ongoing work under buildah containers/buildah#1590, but run should work just fine as it's part of OCI since 2017 https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list-field-descriptions and e.g. alpine images are released this way for quite some time. |
I had to fix slightly patch file as follows: apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: vm-operator
name: vm-operator
spec:
template:
spec:
containers:
- name: manager
env:
- name: VM_VMALERTDEFAULT_VERSION
value: v1.40.0-arm64
- name: VM_VMAGENTDEFAULT_VERSION
value: v1.40.0-arm64
- name: VM_VMSINGLEDEFAULT_VERSION
value: v1.40.0-arm64
- name: VM_VMCLUSTERDEFAULT_VMSELECTDEFAULT_VERSION
value: v1.40.0-cluster-arm64
- name: VM_VMCLUSTERDEFAULT_VMSTORAGEDEFAULT_VERSION
value: v1.40.0-cluster-arm64
- name: VM_VMCLUSTERDEFAULT_VMSELECTDEFAULT_VERSION
value: v1.40.0-cluster-arm64
- name: VM_VMALERTMANAGER_ALERTMANAGERVERSION
value: v0.20.0
- name: VM_VMALERTMANAGER_CONFIGRELOADERIMAGE
value: jimmidyson/configmap-reload:v0.4.0
- name: VM_VMALERTDEFAULT_CONFIGRELOADIMAGE
value: jimmidyson/configmap-reload:v0.4.0
- name: VM_VMAGENTDEFAULT_CONFIGRELOADIMAGE
value: quay.io/coreos/prometheus-config-reloader:v0.41.1-arm64 as I have also run into small issue with alertmanager, but that was simple typo in examples alertmanager config and I have created fixing MR here #79. Let me know if you want to for now focus on other priorities than figuring multiarch images and I can add ARM patch file to docs examples so other ARM fanatics can start operator easily. |
Thanks for testing. Docs and examples aren't so pretty yet and there are many typos) Seems like, I've tested alert manager from quick-start docs - it doesn't contain config typo) Need to refactor examples... Well, I can't promise, that multiarch images for all components will be added soon, it requires some time. Probably at the middle of September. Currently i'm working on OperatorHub integration. Also, I'll create an issue to the main repository - need to apply changes to build process there as well. So feel free to add your experience and patch to the docs ) |
Agree I have created following MR #80 to give guides to other fellow ARM builders. I think you can close this one as we have ARM support now. We can open new issue for multiarch images which can track progress for individual components CI changes. WDYT? |
Thank you for MR. Docs become better) I've opened an issue at main repo. Well, let's keep this issue open, first I'm going to add multi-arch image to the operator, then port changes to main repo. |
FYI, Docker images for VictoriaMetrics should already support multiple architectures - see https://hub.docker.com/r/victoriametrics/victoria-metrics/tags . The following architectures should be supported at the moment:
See VictoriaMetrics/VictoriaMetrics#258 for details. |
Thx @valyala ! I missed it, sry. So the only operator left, will add multi-arch build soon. |
I've managed to add docker manifest with multiarch, now operator should work without changes at all platforms. Docker image with changes - |
I can confirm that it's working perfectly 馃憤
Thanks for your effort to make this happen 馃憦 |
Actually found one issue with operator/internal/config/config.go Line 40 in cea27ec
v0.30.1 are not properly build I get following error::
In order to make it work we need to either keep patching |
Thanks! I'm not able to test it, atm. It seems like only aws provides arm based VMs. |
If you want me to do some verification for you please do let me know |
Closing it, thanks for your contribution! |
I understand that it's early and not priority just want to raise my hand that my raspberry pi 4 64bit cluster is forced to use prometheus-operator. So please if it's not that big of a issue let's make it happen 馃檹
The text was updated successfully, but these errors were encountered: