Git Product home page Git Product logo

aws-eks-logs-to-cloudwatch's Introduction

Create AWS EKS clsuster

eksctl create cluster --name demo --node-type t2.large --nodes 1 --nodes-min 1 --nodes-max 2 --region us-east-1 --zones=us-east-1a,us-east-1b,us-east-1c

Get EKS Cluster service

eksctl get cluster --name demo --region us-east-1

Update Kubeconfig

aws eks update-kubeconfig --name demo

Create your IAM OIDC Identity Provider for your cluster

eksctl utils associate-iam-oidc-provider --cluster demo --approve

Create the service account for cloudwatch logs

  eksctl create iamserviceaccount --name fluentd --namespace kube-system --cluster demo --attach-policy-arn arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy --approve --override-existing-serviceaccounts

Create a cluster role,cluster rolebinding,configmap,daemonset,sampleapp to push the logs to clouwatch log groups

kubectl apply -f .\clusterRole_rolebinding.yaml

kubectl apply -f .\K8S_configmap.yaml

kubectl apply -f .\config_daemonset.yaml

kubectl get ds -n kube-system

kubectl apply -f .\deploy.yaml

aws-eks-logs-to-cloudwatch's People

Contributors

phani-rudra9 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.