Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Fargate provider #173

Merged
merged 18 commits into from Apr 26, 2018
Merged

Conversation

ofiliz
Copy link
Contributor

@ofiliz ofiliz commented Apr 25, 2018

This PR implements the official AWS Fargate provider for virtual-kubelet.

This initial release includes:

  • Basic Kubernetes pod lifecycle on AWS Fargate
  • Container name, image, command, arguments, working directory and environment variables
  • Container resource (CPU and memory) requests, limits and automatic mapping to Fargate task sizes
  • Configurable Fargate platform version and virtual node resource capacity
  • Image pulls from Amazon ECR and other public registries
  • VPC networking with multiple subnets and a dedicated ENI for each pod
  • Private IP address for pods from Kubernetes pod CIDR
  • Optional public IP address for pods for direct internet connectivity
  • Security groups integration for network policy
  • CloudWatch Logs integration for container logs
  • AWS IAM roles for pods via annotations

Important note:
Virtual-kubelet and the AWS Fargate virtual-kubelet provider are in very early stages of development.
DO NOT run the AWS Fargate provider in any Kubernetes or Fargate production environments.

We would like to especially thank @johanneswuerbach for his contributions.

Fixes #12

defer f.Close()

err = p.loadConfig(f)
return err
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could just be return p.loadConfig(f)

config *rest.Config
err error
)
var config *rest.Config
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing a few golint warnings. This definition of err was not used. Also restricted a few really long lines to 120 columns.

@ofiliz
Copy link
Contributor Author

ofiliz commented Apr 26, 2018

Hello, do you think we can complete the review and merge today? This PR is touching only 2 source files outside of AWS Fargate provider, and the changes there are trivial.

As discussed in our meeting earlier this week, I am happy to be the maintainer of AWS Fargate provider and review any PRs from the community going forward.

@robbiezhang
Copy link
Collaborator

@ofiliz I'm good with merging it since it pass the build and basic unit tests. I plan to "Rebase and merge" the PR, so that the commit history is kept. Does it sound good to you?

@jessfraz
Copy link
Contributor

lgtm, thanks!

@robbiezhang robbiezhang merged commit 40f9499 into virtual-kubelet:master Apr 26, 2018
@rbitia
Copy link
Contributor

rbitia commented Apr 26, 2018

Alright I'm going to do a quick pass through and then merge.

@d-nishi
Copy link

d-nishi commented Apr 26, 2018

perfect! Thanks @rbitia @robbiezhang @jessfraz

@ofiliz ofiliz deleted the aws-fargate-provider branch April 26, 2018 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants