kontena / pharos-host-upgrades

Kube DaemonSet for host OS upgrades
Apache License 2.0
41 stars 1 forks source link

Cross-compile arm64 images #25

Closed SpComb closed 6 years ago

SpComb commented 6 years ago

Use GOARCH=arm64 to cross-compile arm64 images.

These builds lack CGO support, which means no systemd journal support.

SpComb commented 6 years ago

Replacing the quay.io repo with separate per-arch repos:

SpComb commented 6 years ago

Tested that the ARCH=arm64 builds work with qemu-aarch64-static:

docker run --rm -v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static kontena/pharos-host-upgrades:arm64 pharos-host-upgrades --help
Usage of /bin/pharos-host-upgrades:
  -alsologtostderr
        log to standard error as well as files
  -config-path string
        Path to configmap dir (default "/etc/host-upgrades")
  ...
jakolehm commented 6 years ago

These builds lack CGO support, which means no systemd journal support.

What does this mean? What kind of functionality we loose here?

SpComb commented 6 years ago

These builds lack CGO support, which means no systemd journal support.

What does this mean? What kind of functionality we loose here?

If the apt-get update or unattended-upgrades fails with an error, then you can't see those errors from kube. You need to SSH to the host and use journalctl -u host-upgrades instead.