Code Monkey home page Code Monkey logo

aws-eks-se-samples's Introduction

Status: Work-in-progress. Please create issues or pull requests if you have ideas for improvement.

Amazon EKS Samples

Example manifests for different workloads samples that you can deploy in Amazon EKS cluster.

Summary

This project demonstrates different examples of Kubernetes manifests, helm charts, eksctl config files that you can use in Amazon EKS.

Disclaimer

This project is an example of different Kubernetes resource samples and are meant to be used for testing and learning purposes only.

Do not use in a production environment. Always refer to Amazon EKS Security Best Practices when using Amazon EKS.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

CI Scan with Checkov

The kubernetes resource are continuously scanned using Checkov with some checks being skipped. See below:

Checks Details Reasons
CKV2_K8S_6 Minimize the admission of pods which lack an associated NetworkPolicy All Pod to Pod communication is allowed by default for easy experimentation in this project. Amazon VPC CNI now supports Kubernetes Network Policies to secure network traffic in kubernetes clusters
CKV_K8S_8 Liveness Probe Should be Configured For easy experimentation, no health checks is to be performed against the container to determine whether it is alive or not. Consider implementing health checks in a production cluster.
CKV_K8S_9 Readiness Probe Should be Configured For easy experimentation, no health checks is to be performed against the container to determine whether it is alive or not. Consider implementing health checks in a production cluster.
CKV_K8S_14 Image Tag should be fixed - not latest or blank We've opted to fetch the latest Images from the Amazon ECR Public Gallery to ensure each sample is deployed with most recent versions. See recommendations for container images.
CKV_K8S_21 The default namespace should not be used To help promote flexible experimentation, Short-lived samples use the default namespace and should be deleted upon test completion. We recommend that you do not use the default namespace in large production systems. For prod, ensure default namespace is not used
CKV_K8S_22 Use read-only filesystem for containers where possible We've made an exception for Cassandra workload that requires are Read/Write file system. Configure your images with read-only root file system
CKV_K8S_23 Minimize the admission of root containers We've used publicly available container images in this project for customers' easy access. For test purposes, the container images user id are left intact. See guidance on building images with specified user ID.
CKV_K8S_25 Minimize the admission of containers with added capability We've made an exception for Cassandra workload that requires added capability. See Container Capabilities for more.
CKV_K8S_28 Minimize the admission of containers with the NET_RAW capability Exception for nginx workload that requires added capability. We recommend you define at least one PodSecurityPolicy (PSP) to prevent containers with NET_RAW capability from launching in a production environment.
CKV_K8S_35 Prefer using secrets as files over secrets as environment variables While it secret has not been included in this samples, consider using a secret in an environment variable. You can use secrets from Secrets Manager and parameters from Parameter Store as files mounted in Amazon EKS Pods.
CKV_K8S_37 Minimize the admission of containers with capabilities assigned For easy experimentation, we've made exception for nginx workload that requires added capability. For production purposes, we recommend capabilities field that allows granting certain privileges to a process without granting all the privileges of the root user.
CKV_K8S_40 Containers should run as a high UID to avoid host conflict We've opted to publicly accessible images from the Amazon ECR Public Gallery. For test purposes, the container images user id are left intact. See how to define UID.
CKV_K8S_43 Image should use digest We've opted to fetch the latest Images from the Amazon ECR Public Gallery to ensure each sample is deployed with most recent versions. In some production cases you may prefer to use a fixed version of an image, rather than update to newer versions and you can pull an image by its digest.

aws-eks-se-samples's People

Contributors

aloknew avatar amazon-auto avatar berry2012 avatar manyamteja avatar raiyan1993 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-eks-se-samples's Issues

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.