You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this module to navigate the bizarre reality known as deploying the AWS load balancer. I finally got this to work locally, but it will not work in Github Actions. The error is thrown:
Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
I suspect this is because I have a Kubernetes alias for the provider for this cluster. Does this module support using an alias?
provider"kubernetes" {
alias="trogdor_kubernetes"host=module.trogdor_eks.cluster_endpointcluster_ca_certificate=base64decode(module.trogdor_eks.cluster_certificate_authority_data)
exec {
api_version="client.authentication.k8s.io/v1beta1"command="aws"# This requires the awscli to be installed locally where Terraform is executedargs=["eks", "get-token", "--cluster-name", module.trogdor_eks.cluster_name]
}
}
provider"helm" {
alias="trogdor_helm"kubernetes {
host=module.trogdor_eks.cluster_endpointcluster_ca_certificate=base64decode(module.trogdor_eks.cluster_certificate_authority_data)
exec {
api_version="client.authentication.k8s.io/v1beta1"command="aws"# This requires the awscli to be installed locally where Terraform is executedargs=["eks", "get-token", "--cluster-name", module.trogdor_eks.cluster_name]
}
}
}
module"trogdor_eks_load_balancer_controller" {
source="lablabs/eks-load-balancer-controller/aws"version="1.2.0"cluster_identity_oidc_issuer=module.trogdor_eks.cluster_oidc_issuer_urlcluster_identity_oidc_issuer_arn=module.trogdor_eks.oidc_provider_arncluster_name=module.trogdor_eks.cluster_nameirsa_role_name_prefix="${var.environment}-${var.app_name}-trogdor-eks-lb"
}
Expected Results
I wish my Github Action would work :(
Actual Results
Planning failed. Terraform encountered an error while generating this plan.Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable with module.trogdor_eks_load_balancer_controller.helm_release.this[0], on .terraform/modules/trogdor_eks_load_balancer_controller/helm.tf line 1, in resource "helm_release" "this": 1: resource "helm_release" "this" {
The text was updated successfully, but these errors were encountered:
Summary
I'm trying to use this module to navigate the bizarre reality known as deploying the AWS load balancer. I finally got this to work locally, but it will not work in Github Actions. The error is thrown:
Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
I suspect this is because I have a Kubernetes alias for the provider for this cluster. Does this module support using an alias?
Issue Type
Bug Report
Terraform Version
Steps to Reproduce
Expected Results
I wish my Github Action would work :(
Actual Results
The text was updated successfully, but these errors were encountered: