All Projects → scholzj → aws-kubernetes

scholzj / aws-kubernetes

Licence: Apache-2.0 license
Kubernetes cluster setup in AWS using Terraform and kubeadm

Programming Languages

HCL
1544 projects

Projects that are alternatives of or similar to aws-kubernetes

Terraform Aws Kubernetes
Terraform module for Kubernetes setup on AWS
Stars: ✭ 159 (+396.88%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
Kainstall
Use shell scripts to install kubernetes(k8s) high availability clusters and addon components based on kubeadmin with one click.使用shell脚本基于kubeadmin一键安装kubernetes 高可用集群和addon组件。
Stars: ✭ 198 (+518.75%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
GPU-Kubernetes-Guide
How to setup a production-grade Kubernetes GPU cluster on Paperspace in 10 minutes for $10
Stars: ✭ 34 (+6.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
kainstall-offline
kainstall tools offline file
Stars: ✭ 31 (-3.12%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
kubernetes-cluster
Vagrant As Automation Script
Stars: ✭ 34 (+6.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
rak8s
Stand up a Raspberry Pi based Kubernetes cluster with Ansible
Stars: ✭ 362 (+1031.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
Rak8s
Stand up a Raspberry Pi based Kubernetes cluster with Ansible
Stars: ✭ 354 (+1006.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup, kubeadm
kubeadm-vagrant
Setup Kubernetes Cluster with Kubeadm and Vagrant
Stars: ✭ 49 (+53.13%)
Mutual labels:  kubernetes-cluster, kubeadm
Kubernetes Gpu Guide
This guide should help fellow researchers and hobbyists to easily automate and accelerate there deep leaning training with their own Kubernetes GPU cluster.
Stars: ✭ 740 (+2212.5%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
Raspbernetes
Raspberry Pi Kubernetes Cluster
Stars: ✭ 53 (+65.63%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
Sonobuoy
Sonobuoy is a diagnostic tool that makes it easier to understand the state of a Kubernetes cluster by running a set of Kubernetes conformance tests and other plugins in an accessible and non-destructive manner.
Stars: ✭ 2,442 (+7531.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
Kubernetes Saltstack
Recipe to deploy production Kubernetes cluster.
Stars: ✭ 191 (+496.88%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
icp-ce-on-linux-containers
Multi node IBM Cloud Private Community Edition 3.2.x w/ Kubernetes 1.13.5 in a Box. Terraform, Packer and BASH based Infrastructure as Code script sets up a multi node LXD cluster, installs ICP-CE and clis on a metal or VM Ubuntu 18.04 host.
Stars: ✭ 52 (+62.5%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
K8s Digitalocean Terraform
Deploy latest Kubernetes cluster on DigitalOcean using Terraform
Stars: ✭ 33 (+3.13%)
Mutual labels:  kubernetes-cluster, kubeadm
jenkins kube brains
Example scripts to run Kubernetes on your private VMs. This is to support of Loren and my KubeCon 2018 talk "Migrating Jenkins to Kubernetes broke our brains." https://sched.co/GrSh
Stars: ✭ 34 (+6.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
Kubernix
Single dependency Kubernetes clusters for local testing, experimenting and development
Stars: ✭ 545 (+1603.13%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
Metalk8s
An opinionated Kubernetes distribution with a focus on long-term on-prem deployments
Stars: ✭ 217 (+578.13%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
kubeadm-tf
PoC; terraform + kubeadm
Stars: ✭ 25 (-21.87%)
Mutual labels:  kubernetes-cluster, kubeadm
kubernetes the easy way
Automating Kubernetes the hard way with Vagrant and scripts
Stars: ✭ 22 (-31.25%)
Mutual labels:  kubernetes-cluster, kubernetes-setup
Kurl
Production-grade, airgapped Kubernetes installer combining upstream k8s with overlays and popular components
Stars: ✭ 391 (+1121.88%)
Mutual labels:  kubernetes-cluster, kubeadm

AWS Kubernetes

AWS Kubernetes is a Kubernetes cluster deployed using Kubeadm tool. It provides full integration with AWS. It is able to handle ELB load balancers, EBS disks, Route53 domains and other AWS resources.

Updates

  • 26.8.2022 Update to Kubernetes 1.25.0 + Calico upgrade
  • 22.8.2022 Update to Kubernetes 1.24.4
  • 16.7.2022 Update to Kubernetes 1.24.3
  • 27.6.2022 Update to Kubernetes 1.24.2
  • 11.6.2022 Update to Kubernetes 1.24.1 + update add-ons + remove dependency on the template provider
  • 8.5.2022 Update to Kubernetes 1.24.0 + update add-ons
  • 23.3.2022 Update to Kubernetes 1.23.5 + update add-ons
  • 19.2.2022 Update to Kubernetes 1.23.4
  • 12.2.2022 Update to Kubernetes 1.23.2
  • 29.12.2021 Update to Kubernetes 1.23.1
  • 11.12.2021 Update to Kubernetes 1.23.0

Prerequisites and dependencies

AWS Kubernetes deploys into an existing VPC / public subnet. If you don't have your VPC / subnet yet, you can use this configuration to create one. To deploy AWS Kubernetes there are no other dependencies apart from Terraform. Kubeadm is used only on the EC2 hosts and doesn't have to be installed locally.

Configuration

The configuration is done through Terraform variables. Example tfvars file is part of this repo and is named example.tfvars. Change the variables to match your environment / requirements before running terraform apply ....

Option Explanation Example
aws_region AWS region which should be used eu-central-1
cluster_name Name of the Kubernetes cluster (also used to name different AWS resources) my-aws-kubernetes
master_instance_type AWS EC2 instance type for master t2.medium
worker_instance_type AWS EC2 instance type for worker t2.medium
ssh_public_key SSH key to connect to the remote machine ~/.ssh/id_rsa.pub
master_subnet_id Subnet ID where master should run subnet-8d3407e5
worker_subnet_ids List of subnet IDs where workers should run [ "subnet-8d3407e5" ]
min_worker_count Minimal number of worker nodes 3
max_worker_count Maximal number of worker nodes 6
hosted_zone DNS zone which should be used my-domain.com
hosted_zone_private Is the DNS zone public or private false
addons List of add-ons which should be installed [ "https://..." ]
tags Tags which should be applied to all resources see example.tfvars file
tags2 Tags in second format which should be applied to AS groups see example.tfvars file
ssh_access_cidr List of CIDRs from which SSH access is allowed [ "0.0.0.0/0" ]
api_access_cidr List of CIDRs from which API access is allowed [ "0.0.0.0/0" ]

Using multiple / different subnets for workers nodes

In order to run workers in additional / different subnet(s) than master you have to tag the subnets with kubernetes.io/cluster/{cluster_name}=shared. For example kubernetes.io/cluster/my-aws-kubernetes=shared. During the cluster setup, the bootstrapping script will automatically add these tags to the subnets specified in worker_subnet_ids.

Creating AWS Kubernetes Cluster

To create AWS Kubernetes cluster,

  • Export AWS credentials into environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  • Apply Terraform configuration:
terraform apply --var-file example.tfvars

Deleting AWS Kubernetes Cluster

To delete AWS Kubernetes cluster,

  • Export AWS credentials into environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  • Destroy Terraform configuration:
terraform destroy --var-file example.tfvars

Add-ons

Currently, following add-ons are supported:

  • Kubernetes dashboard
  • Heapster for resource monitoring
  • Storage class and CSI driver for automatic provisioning of persistent volumes
  • External DNS (Replaces Route53 mapper)
  • Ingress
  • Autoscaler

The add-ons will be installed automatically based on the Terraform variables.

Custom Add-ons

Custom add-ons can be added if needed. For every URL in the addons list, the initialization scripts will automatically call kubectl -f apply <Addon URL> to deploy it. The cluster is using RBAC. So the custom add-ons have to be RBAC ready.

Tagging

If you need to tag resources created by your Kubernetes cluster (EBS volumes, ELB load balancers etc.) check this AWS Lambda function which can do the tagging.

## Frequently Asked Questions

How to access the Kubernetes Dashboard

The Kubernetes Dashboard add-on is by default not exposed to the internet. This is intentional for security reasons (no authentication / authorization) and to save costs for Amazon AWS ELB load balancer.

You can access the dashboard easily fro any computer with installed and configured kubectl:

  1. From command line start kubectl proxy
  2. Go to your browser and open http://127.0.0.1:8001/ui
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].