hashicorp / learn-consul-kubernetes

Mozilla Public License 2.0
32 stars 36 forks source link

Echo images for Consul API Gateway are not arm64-compatible #65

Closed nathancoleman closed 2 years ago

nathancoleman commented 2 years ago

The image used for echo-1 and echo-2 in the local Consul API Gateway setup are not compatible with arm64 machines (M1 Macs, for example).

The echo services go into a crash loop with the error:

Generating self-signed cert
Generating a 2048 bit RSA private key
...............................+++
.......................................................................................................+++
writing new private key to '/certs/privateKey.key'
-----
Starting nginx
PANIC: unprotected error in call to Lua API (bad light userdata pointer)

According to https://github.com/kubernetes/ingress-nginx/issues/2802, this is because Lua didn't previously support arm64 architectures. The image we're currently using has fallen out of date.

I was able to get the setup working with a similar image - k8s.gcr.io/ingressconformance/echoserver:v0.0.1 - and some port adjustments; however, the repo has changed significantly since then. I'm hoping to be able to update my branch and make a PR soon. In the meantime, I figured I would document the issue here.