datarevenue-berlin / OpenMLOps

MIT License
695 stars 101 forks source link

Unsupported Kubernetes Version Error #108

Closed Fadi-Almachraki closed 2 years ago

Fadi-Almachraki commented 2 years ago

Hello, and thank you for this great resource. I'm running into an error while going through the architecture set-up tutorial for AWS. I'm able to successfully run everything including "terraform plan -var-file=my_vars.tfvars". I get the following error when I run "terraform apply -var-file=my_vars.tfvars". Let me know if there's any other helpful information I could provide:

image

bernardolk commented 2 years ago

Hello, in your my_vars file, are you using kubernetes_version = "1.17" ? I think AWS deprecated that version for new EKS clusters. See this link https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html Apparently you will have to set it with one version from the least, being the oldest one 1.18.16. Can you try that and see if it works? I can then update the default in the project's my_vars file / documentation.

Fadi-Almachraki commented 2 years ago

Thanks for getting back to me and pardon the potentially dumb question. But where should I be trying to change the version? I don't have a kubernetes_version variable in the my_vars file (which is inside the OpenMLOps-AWS repo). Please let me know if you think i'm missing anything.

bernardolk commented 2 years ago

You can add a line there for the "kubernetes_version" variable in the file anyway :) e.g. kubernetes_version = 1.18.16

Fadi-Almachraki commented 2 years ago

Thank you that worked. But I actually had to do kubernetes_version = 1.18. Otherwise I was getting an error related to not being able to read the version as a number. I'm now dealing with a different error I'll post a new issue about.