Skip to content
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

Helm Chart does not work in arm64 architecture #94

Open
cgiraldo opened this issue Dec 17, 2024 · 3 comments
Open

Helm Chart does not work in arm64 architecture #94

cgiraldo opened this issue Dec 17, 2024 · 3 comments
Labels
question Further information is requested

Comments

@cgiraldo
Copy link

Deploying the helm chart with default values does not work on an arm64 node.

$kubectl get pods

NAME                                 READY   STATUS             RESTARTS      AGE
passbolt-job-create-gpg-keys-v2nnc   0/1     CrashLoopBackOff   4 (80s ago)   3m24s

$ kubectl logs passbolt-job-create-gpg-keys-v2nnc 
gpg: keybox '/var/lib/passbolt/.gnupg/pubring.kbx' created
gpg: /var/lib/passbolt/.gnupg/trustdb.gpg: trustdb created
gpg: directory '/var/lib/passbolt/.gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/var/lib/passbolt/.gnupg/openpgp-revocs.d/9641A262B547F112675D97F13808BB375FCA444E.rev'
gpg: WARNING: unsafe ownership on homedir '/var/lib/passbolt/.gnupg'
gpg: WARNING: unsafe ownership on homedir '/var/lib/passbolt/.gnupg'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   138  100   138    0     0    814      0 --:--:-- --:--:-- --:--:--   816
100 54.6M  100 54.6M    0     0  54.9M      0 --:--:-- --:--:-- --:--:-- 81.8M
/bin/bash: line 38: ./kubectl: cannot execute binary file: Exec format error
cgiraldo added a commit to cgiraldo/charts-passbolt that referenced this issue Dec 17, 2024
Remove default value of KUBECTL_CMD because it is architecture-dependant (amd64).
@Tecnobutrul Tecnobutrul added the question Further information is requested label Dec 17, 2024
@Tecnobutrul
Copy link
Member

Hello @cgiraldo!

Thank you for using the passbolt helm chart. In order to solve you issue there is an environment variable to configure the kubectl binary download command so you download the kubectl for the desired architecture. I hope this solve your issue, otherwise let us know.

@cgiraldo
Copy link
Author

I think the default values of the helm chart should work on amd64/arm64 without requiring custom values to be provided.

If we change "passboltEnv.plain.KUBECTL_DOWNLOAD_CMD" to the empty string, the chart works for both architectures.

There is also another problem with the redis chart dependency not working in arm64 architecture.

bitnami/containers#26062

This is fixed in new version of the bitnami charts. I submitted a PR that fixes both problems.

@Tecnobutrul
Copy link
Member

Yes, you are right. This change will be part of the next charts-passbolt release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants