Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform build is failing #120

Open
Xcellect opened this issue Aug 26, 2023 · 2 comments
Open

Terraform build is failing #120

Xcellect opened this issue Aug 26, 2023 · 2 comments

Comments

@Xcellect
Copy link

Xcellect commented Aug 26, 2023

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
Copy link

Did you manage to solve this issue?

@giangmt
Copy link

giangmt commented Nov 1, 2023

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" {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants