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

Upgrade Kubernetes Provider #1433

Merged
merged 7 commits into from
Dec 2, 2021
Merged

Upgrade Kubernetes Provider #1433

merged 7 commits into from
Dec 2, 2021

Conversation

vijay-veeranki
Copy link
Contributor

@vijay-veeranki vijay-veeranki commented Dec 1, 2021

Upgrade k8's provider to version = "~> 2.6.1", this is a pre-requisite for K8s 1.20 upgrade.

https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/guides/v2-upgrade-guide#changes-in-v200

  • The load_config_file attribute has been removed.
  • Support for the KUBECONFIG environment variable has been dropped. (Use KUBE_CONFIG_PATH or KUBE_CONFIG_PATHS instead).
  • The config_path attribute will no longer default to ~/.kube/config.

If KUBE_CONFIG_PATH is set, it is ignoring below, so we need to unset KUBE_CONFIG_PATH, unless we want to set config_path

  host                   = data.aws_eks_cluster.cluster.endpoint
  cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
  token                  = data.aws_eks_cluster_auth.cluster.token

Used exec as to avoid token expire during long-running applies.

@vijay-veeranki vijay-veeranki requested a review from a team as a code owner December 1, 2021 17:56
@vijay-veeranki vijay-veeranki changed the title Upgrade 1.20 Upgrade Kubernetes Provider Dec 2, 2021
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

Successfully merging this pull request may close these issues.

2 participants