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

docs: Update Terraform getting started guide to include recent changes #2913

Merged
merged 2 commits into from
Nov 23, 2022
Merged

docs: Update Terraform getting started guide to include recent changes #2913

merged 2 commits into from
Nov 23, 2022

Conversation

bryantbiggs
Copy link
Member

Fixes #

Description

  • Update Terraform getting started guide to utilize latest module versions
  • Add support for Karpenter native instance termination handling to the guide
  • Update helm release to use credentials pulled from ECR now that OCI chart is on ECR

How was this change tested?

  • Changes were pulled down locally to provision resources and then exercise the scaling out and scaling in as defined in the updated guide

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bryantbiggs bryantbiggs requested a review from a team as a code owner November 22, 2022 17:46
@netlify
Copy link

netlify bot commented Nov 22, 2022

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit a8ab504
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/637d0cd95da8d80008a0bbf4
😎 Deploy Preview https://deploy-preview-2913--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -33,10 +33,10 @@ Install these tools before proceeding:
1. [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html)
2. `kubectl` - [the Kubernetes CLI](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
3. `terraform` - [infrastructure-as-code tool made by HashiCorp](https://learn.hashicorp.com/tutorials/terraform/install-cli)
4. `helm` - [the package manager for Kubernetes](https://helm.sh/docs/intro/install/)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required since this is handled through Terraform via Helm's SDK


Login to the AWS CLI with a user that has sufficient privileges to create a
cluster.
[Configure the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied from eksctl getting started guide

}
name = "karpenter"
repository = "oci://public.ecr.aws/karpenter"
repository_username = data.aws_ecrpublic_authorization_token.token.user_name
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uses data source to pull creds to ensure chart can be pulled from ECR


set {
name = "settings.aws.clusterName"
value = module.eks.cluster_id
Copy link
Member Author

@bryantbiggs bryantbiggs Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will want to rely on cluster_name and not cluster_id since there is a new distinction coming with the support for EKS local clusters on outposts hashicorp/terraform-provider-aws#27560

Nothing required here other than where most instances of cluster_id are used, we should use cluster_name

]
}

resource "kubectl_manifest" "karpenter_node_template" {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tags were removed from node group to de-emphasize the launch template usage of Karpenter and switch to the node template which has been added here

@FernandoMiguel
Copy link
Contributor

this looks great

Copy link
Contributor

@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@jonathan-innis jonathan-innis merged commit c36611b into aws:main Nov 23, 2022
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.

4 participants