https://github.com/provectus/sak-kubernetes
EKS module for SAK project
https://github.com/provectus/sak-kubernetes
aws devops eks open-source swiss-army-kube
Last synced: about 1 year ago
JSON representation
EKS module for SAK project
- Host: GitHub
- URL: https://github.com/provectus/sak-kubernetes
- Owner: provectus
- Created: 2021-01-21T09:25:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T21:28:00.000Z (over 3 years ago)
- Last Synced: 2025-04-18T13:09:51.529Z (about 1 year ago)
- Topics: aws, devops, eks, open-source, swiss-army-kube
- Language: HCL
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 83
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Annotation
The Kubernates module is used to deploy the EKS cluster in Amazon. Also creates an autoscaling group in selected accessibility zones
## Used modules
- [terraform-aws-eks](https://github.com/terraform-aws-modules/terraform-aws-eks)
- [terraform-aws-vpc](https://github.com/terraform-aws-modules/terraform-aws-vpc)
## Feature
- `Spot or on_demand workers` - node-labels=kubernetes.io/lifecycle=normal for on_demand node and node-labels=kubernetes.io/lifecycle=spot for spot node. Your make use it for [Node affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node)
- `Add arns for additional admins` - We set current user to add as admin EKS cluster. Your make add additional admins arn's to variables admin_arns in variables.tf or module parameters in project
- `Use containerd as CRI instead of docker` - Starting from 1.21 EKS started to support another type of [Container Runtime Interface](https://kubernetes.io/docs/setup/production-environment/container-runtimes/). You can set variable `container_runtime` to `docker` or `containerd`.
## Usage
```
module "kubernetes" {
depends_on = [module.network]
source = "https://github.com/provectus/sak-kubernetes.git"
environment = local.environment
project = local.project
availability_zones = var.availability_zones
cluster_name = local.cluster_name
vpc_id = module.network.vpc_id
subnets = module.network.private_subnets
}
```
## Requirements
```
terraform >= 0.15
```
## Providers
| Name | Version |
|------|---------|
| aws | >= 3.0 |
| kubernetes | >= 1.11 |