Amazon EKS cluster
An EKS cluster
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-yaml-ekscd pulumi-examples/aws-yaml-eksThis example deploys an EKS Kubernetes cluster inside the default AWS VPC.
Prerequisites#
Deploying the example#
-
Create a new stack:
Terminal window pulumi stack init dev -
Set the AWS region to deploy into:
Terminal window pulumi config set aws:region us-east-2 -
Run
pulumi upto preview and deploy changes:Terminal window pulumi upPreviewing changes:...Performing changes:...Resources:+ 28 createdDuration: 10m0s -
Check the deployed kubeconfig:
Terminal window pulumi stack output kubeconfig{"apiVersion":"v1","clusters":[{"cluster":{"certificate-authority-data":"LS0tLS1CRUdJTiBDR...
Cleaning up#
Once you’re finished, destroy your stack and remove it:
pulumi destroypulumi stack rmRelated
Tutorial
Run Kubernetes on Amazon EKS
Blog PostJun 2020