Skip to content

Instantly share code, notes, and snippets.

@yogesh174
Last active June 5, 2021 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogesh174/a1b180633489808e95e71a17a7930a03 to your computer and use it in GitHub Desktop.
Save yogesh174/a1b180633489808e95e71a17a7930a03 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
########################################
######## Create k8s master node ########
########################################
resource "aws_instance" "k8s_master" {
ami = data.aws_ami.amazon_linux_2.image_id
instance_type = var.instance_type
tags = {
Name = "aws-k8s-master"
}
key_name = aws_key_pair.terraform_k8s.key_name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment