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

efs-sc failed to create kubernetes rest client #15

Open
1 task done
digital-ml opened this issue Mar 23, 2023 · 1 comment
Open
1 task done

efs-sc failed to create kubernetes rest client #15

digital-ml opened this issue Mar 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@digital-ml
Copy link

Contact Details (optional)

gwest@digitalml.com

Description. What happened?

The below error when creating a storage class

`module.efs_csi_driver.kubectl_manifest.storage_class[0]: Creating...

Error: efs-sc failed to create kubernetes rest client for update of resource: Get "http://localhost/api?timeout=32s": dial tcp [::1]:80: connect: connection refused

with module.efs_csi_driver.kubectl_manifest.storage_class[0],
on .terraform/modules/efs_csi_driver/storage-class.tf line 1, in resource "kubectl_manifest" "storage_class":
1: resource "kubectl_manifest" "storage_class" {

ERROR: Job failed: exit code 1`

Steps to reproduce

use module as below

module "efs_csi_driver" {
source = "git::https://github.com/DNXLabs/terraform-aws-eks-efs-csi-driver.git"

cluster_name = module.eks.cluster_name
cluster_identity_oidc_issuer = module.eks.cluster_oidc_issuer_url
cluster_identity_oidc_issuer_arn = module.eks.oidc_provider_arn
}

Expected behavior

No response

Actual behavior

error creating the storageclass

Occurrence

Frequently

Relevant log output

Error: efs-sc failed to create kubernetes rest client for update of resource: Get "http://localhost/api?timeout=32s": dial tcp [::1]:80: connect: connection refused

Code of Conduct

  • I agree to follow this project's Code of Conduct
@digital-ml digital-ml added the bug Something isn't working label Mar 23, 2023
@yekibud
Copy link

yekibud commented Mar 28, 2023

@digital-ml FYI, I resolved this issue for myself by using the gavinbunney/kubectl provider and specifying load_config_file = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants