We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Our Kubernetes upgrade path involves the following steps:
We want to automate this workflow using Terraform. There is support for each of these steps except for the tainting of existing worker nodes.
To accomplish this, we need two things:
New data source: kubernetes_nodes. This lets us find all nodes in CSP autoscaling group with a specific label.
kubernetes_nodes
New resource: kubernetes_node_taint. This lets us apply a taint to all nodes returned by kubernetes_nodes data source.
kubernetes_node_taint
data "kubernetes_nodes" "example" { metadata { labels = { "node-role.kubernetes.io/group" = "group1" } } } resource "kubernetes_node_taint" "example" { for_each = toset(data.kubernetes_nodes.example.nodes) taint { key = "node-role.kubernetes.io/retired" value = "true" effect = "NoSchedule" } }
The kubernetes_nodes data source and kubernetes_node_taint resource have been implemented and are ready for review: #1921
The text was updated successfully, but these errors were encountered:
Any chance someone could take a look? This is already implemented, I just need a review for the pull request.
Thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Our Kubernetes upgrade path involves the following steps:
We want to automate this workflow using Terraform. There is support for each of these steps except for the tainting of existing worker nodes.
To accomplish this, we need two things:
New data source:
kubernetes_nodes
. This lets us find all nodes in CSP autoscaling group with a specific label.New resource:
kubernetes_node_taint
. This lets us apply a taint to all nodes returned bykubernetes_nodes
data source.Potential Terraform Configuration
References
The
kubernetes_nodes
data source andkubernetes_node_taint
resource have been implemented and are ready for review: #1921Community Note
The text was updated successfully, but these errors were encountered: