Skip to content
Snippets Groups Projects
Select Git revision
  • 3c6b1480b806bcf8ac77e87a9cba0a637c04fe6d
  • master default protected
  • v2.27.1
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
22 results

aws

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Vincent Schwarzer authored
    Rewrote AWS Terraform deployment for AWS Kargo. It supports now
    multiple Availability Zones, AWS Loadbalancer for Kubernetes API,
    Bastion Host, ...
    
    For more information see README
    3c6b1480
    History

    Kubernetes on AWS with Terraform

    Overview:

    This project will create:

    • VPC with Public and Private Subnets in # Availability Zones
    • Bastion Hosts and NAT Gateways in the Public Subnet
    • A dynamic number of masters, etcd, and worker nodes in the Private Subnet
    • even distributed over the # of Availability Zones
    • AWS ELB in the Public Subnet for accessing the Kubernetes API from the internet

    Requirements

    • Terraform 0.8.7 or newer

    How to Use:

    • Export the variables for your AWS credentials or edit credentials.tfvars:
    export aws_access_key="xxx"
    export aws_secret_key="yyy"
    export aws_ssh_key_name="zzz"
    • Update contrib/terraform/aws/terraform.tfvars with your data

    • Run with terraform apply -var-file="credentials.tfvars" or terraform apply depending if you exported your AWS credentials

    • Once the infrastructure is created, you can run the kargo playbooks and supply inventory/hosts with the -i flag.

    Architecture

    Pictured is an AWS Infrastructure created with this Terraform project distributed over two Availability Zones.

    AWS Infrastructure with Terraform