-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Unable to create kubernetes config map when using the alias in kubernets provider #2862
Comments
Please provide a reproduction |
We are trying to setup a EKS cluster, using the following provider block where in we are using the alias in the kubernetes provider .
Following is the logs when apply is done
I am using the alias block in the cluster creation module as below
|
For some reason, the You can have the module generate the |
Thank you for the suggestion I added
For the above erorr, I followed the fix mentioned here #2369 (comment) then commented
Planned and applied again after commenting |
I've ran into many issues with having the module managing the I split out the aws_auth configmap tasks into a separate template and am manually managing it via a separate |
I use the following settings and can run successfully.
|
I don't think this is a module issue - however, we are close to shipping v20.0 (#2858) which replaces the use of the aws-auth configmap with cluster access entries which makes this entire experience easier less problematic |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Versions
Module version [Required]: 19.16.0
Terraform version:
1.6.4
Provider version(s):
"hashicorp/kubernetes"
version = "2.23.0"
Reproduction Code [Required]
provider "kubernetes" {
alias = "atlantiseks"
host = module.atlantis_eks_cluster.cluster_endpoint
cluster_ca_certificate = base64decode(module.atlantis_eks_cluster.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.atlantis.token
}
Steps to reproduce the behavior:
Default YesUnable to create the kubernetes_config_map_v1_data.aws_auth[0] resource for the EKS cluster when using alias in the kubernetes provider block
Logs :
It just shows creating but it does not create the aws config map
module.atlantis_eks_cluster.kubernetes_config_map_v1_data.aws_auth[0]: Creating...
module.atlantis_eks_cluster.kubernetes_config_map_v1_data.aws_auth[0]: Still creating... [10s elapsed]
module.atlantis_eks_cluster.kubernetes_config_map_v1_data.aws_auth[0]: Still creating... [20s elapsed]
module.atlantis_eks_cluster.kubernetes_config_map_v1_data.aws_auth[0]: Still creating... [30s elapsed]
╷
│ Error: The configmap "aws-auth" does not exist
│
│ with module.atlantis_eks_cluster.kubernetes_config_map_v1_data.aws_auth[0],
│ on .terraform/modules/atlantis_eks_cluster/main.tf line 554, in resource "kubernetes_config_map_v1_data" "aws_auth":
│ 554: resource "kubernetes_config_map_v1_data" "aws_auth" {
The text was updated successfully, but these errors were encountered: