Hi, We are try to to create an EC2 instance, deplo...
# general
p
Hi, We are try to to create an EC2 instance, deploy
kubeadm
,
Rancher
, and configure master/worker pods using Pulumi in Go. Currently we are using the
user_data
script in the Pulumi configuration to install
kubeadm
as soon as the instance is created and then using the Pulumi Kubernetes SDK to manage the cluster (deploy Rancher, create pods, etc.). Is there a way directly bootstrap a Kubernetes cluster (e.g., using
kubeadm
) on EC2 instances in Pulumi without manually doing it or using user_data scripts?
q
You could use AWS ImageBuilder to bake an AMI (https://www.pulumi.com/registry/packages/aws/api-docs/imagebuilder/) with kubeadm and all other dependencies installed. The other option I see is using AWS EKS as your kubernetes platform.
p
we will still need to have scripts that install docker and the kubernetes components to create the recipe for the AMI through pulumi?