stafftastic / jitsu-chart

MIT License
14 stars 7 forks source link

Issue when using eks #4

Closed analogrithems closed 9 months ago

analogrithems commented 9 months ago

When you use eks with your helm chart you get these startup errors for token-generator

5m1s        Normal    Pulling                  pod/jitsu-token-generator-c5ce6b01-ll4bd                  Pulling image "alpine/k8s:1.27.9-eks-5e0fdde"
5m          Warning   Failed                   pod/jitsu-token-generator-c5ce6b01-ll4bd                  Failed to pull image "alpine/k8s:1.27.9-eks-5e0fdde": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/alpine/k8s:1.27.9-eks-5e0fdde": failed to resolve reference "docker.io/alpine/k8s:1.27.9-eks-5e0fdde": docker.io/alpine/k8s:1.27.9-eks-5e0fdde: not found

This is because eks adds the following alpine/k8s:1.27.9 -eks-5e0fdde to the templates/token_generator/job.yaml section

          image: "alpine/k8s:{{ .Capabilities.KubeVersion.Version | trimPrefix "v"}}"

I've hard set it to 1.27.9 for now in testing since that's the current cluster version

          image: alpine/k8s:1.27.9
echozio commented 9 months ago

Good catch! This should be fixed in v1.0.1 (also allows you to override it thru values should the need arise).