datarevenue-berlin / OpenMLOps

MIT License
695 stars 101 forks source link

Terraform build is failing #120

Open Xcellect opened 10 months ago

Xcellect commented 10 months ago

I am attempting to set up the minikube cluster locally on a Windows machine.

When I attempt to run with the provided my_vars.tfvars as shown in the instruction,

aws = false
db_username = "mlflow-db-user"
db_password = "mlflow-db-pasword"
hostname = "myambassador.com"
ory_kratos_cookie_secret = "secret"
ory_kratos_db_password = "password"
install_metrics_server = false
install_feast = false
install_seldon = false
prefect_create_tenant_enabled = false
jhub_proxy_secret_token = "IfYouDecideToUseJhubProxyYouShouldChangeThisValueToARandomString"
enable_ory_authentication = false
oauth2_providers = []
mlflow_artifact_root = "/tmp"
install_locally = true

I get the following errors.


Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

kubernetes_service_account.daskhub-sa: Destroying... [id=daskhub/daskhub-sa]
kubernetes_service_account.daskhub-sa: Destruction complete after 0s
kubernetes_service_account.daskhub-sa: Creating...
module.ambassador[0].helm_release.ambassador[0]: Creating...
module.dask-jupyterhub.helm_release.dask-jupyterhub: Creating...
module.dask.helm_release.dask: Creating...
module.postgres.helm_release.postgres: Creating...
module.prefect-server.helm_release.prefect-server: Creating...
kubernetes_service_account.daskhub-sa: Still creating... [10s elapsed]
module.dask.helm_release.dask: Still creating... [10s elapsed]
kubernetes_service_account.daskhub-sa: Still creating... [20s elapsed]
module.dask.helm_release.dask: Still creating... [20s elapsed]
module.dask.helm_release.dask: Still creating... [30s elapsed]
module.dask.helm_release.dask: Still creating... [40s elapsed]
module.dask.helm_release.dask: Still creating... [50s elapsed]
module.dask.helm_release.dask: Still creating... [1m0s elapsed]
module.dask.helm_release.dask: Still creating... [1m10s elapsed]
module.dask.helm_release.dask: Creation complete after 1m19s [id=dask]
╷
│ Error: Waiting for default secret of "daskhub/daskhub-sa" to appear
│
│   with kubernetes_service_account.daskhub-sa,
│   on main.tf line 12, in resource "kubernetes_service_account" "daskhub-sa":
│   12: resource "kubernetes_service_account" "daskhub-sa" {
│
╵
╷
│ Error: failed to install CRD crds/filter.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
│
│   with module.ambassador[0].helm_release.ambassador[0],
│   on modules\ambassador\main.tf line 1, in resource "helm_release" "ambassador":
│    1: resource "helm_release" "ambassador" {
│
╵
╷
│ Error: failed to install CRD crds/daskclusters.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
│
│   with module.dask-jupyterhub.helm_release.dask-jupyterhub,
│   on modules\dask-jupyterhub\main.tf line 1, in resource "helm_release" "dask-jupyterhub":
│    1: resource "helm_release" "dask-jupyterhub" {
│
╵
╷
│ Error: chart "postgresql" version "10.9.1" not found in https://charts.bitnami.com/bitnami repository
│
│   with module.postgres.helm_release.postgres,
│   on modules\postgres\main.tf line 2, in resource "helm_release" "postgres":
│    2: resource "helm_release" "postgres" {
│
╵
╷
│ Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "RoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
│
│   with module.prefect-server.helm_release.prefect-server,
│   on modules\prefect-server\main.tf line 1, in resource "helm_release" "prefect-server":
│    1: resource "helm_release" "prefect-server" {
│

Any direction would be much appreciated.

ajeytiwary commented 8 months ago

Did you manage to solve this issue?

giangmt commented 8 months ago

I also encountered a similar error when running the following command on Windows 11.

terraform apply -var-file="my_vars.tfvars"



 Error: chart "postgresql" version "10.9.1" not found in https://charts.bitnami.com/bitnami repository

   with module.postgres.helm_release.postgres,
   on modules\postgres\main.tf line 2, in resource "helm_release" "postgres":
    2: resource "helm_release" "postgres" {