Code Monkey home page Code Monkey logo

eks-demo's Introduction

eks-demo

Task 1. [Automate EKS cluster setup on AWS]

In order to start using current solution following requirement should be met:

  • The lastest version of aws cli should be installed.
  • Terraform version v1.3.6 or higher must be installed.
  • AWS access key and secret key of the user with full permissions for EC2, EKS and IAM.
  • kubectl version: v1.24 or higher must be installed.
  • eks-demo.sh script was tested on Linux, but should work fine on Mac too.

Also following configuration should be done in advance:
aws configure --profile eks

Follow wizard's intructions and as it is done - you're good to go!
Below is a brief description of how to use the solution.

  1. Clone the repo using folowing command
    git clone https://github.com/PetrKalmukhyan/eks-demo.git
    and change your current directory to eks-demo
    cd ./eks-demo
  2. To deploy demo EKS cluster and a pod to test S3 access using IAM roles for service accounts, please:
  • execute
    ./eks-demo.sh
  • type
    deploy
  1. To test S3 access from test pod, please:
  • execute
    ./eks-demo.sh
  • type
    tests3
  1. To destroy demo environment, please:
  • execute
    ./eks-demo.sh
  • type
    destroy

Task 2. [Managing secrets on Kubernetes]

Storing sensitive data, like secrets, in git repos sound like a common issue for the small development teams. However, keeping secrets in git repo is not a best practice, so for this case I'd recommend to implement Kubernetes Secrets, to store sensitive information. Unfortunately, be default, Kubernetes stores secrets only base64 encoded, which in not secure either. Two solutions described below are aimed to solve that that challenge:

  1. AWS Secrets and Configuration Provider (ASCP). In spite of native integration with AWS, this solution might require an additional development, as it has different secret query mechanism.
  2. External Secrets. This solution provides seamless integration with AWS Secrets Managem and similar services from other cloud prodivers and can be used to map secrets directly into the pod. A huge plus is that no additional development is required.

With all things equal I'd recommend option 2.

eks-demo's People

Contributors

petrkalmukhyan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.