<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chris Phan</title>
    <description>The latest articles on DEV Community by Chris Phan (@chrisphan).</description>
    <link>https://dev.to/chrisphan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1117961%2F061cbfa9-23e8-4750-92ec-e9d029764079.png</url>
      <title>DEV Community: Chris Phan</title>
      <link>https://dev.to/chrisphan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chrisphan"/>
    <language>en</language>
    <item>
      <title>Exploring the Top Kubernetes Monitoring Tools for Seamless Cluster Management - TechVueHub</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Thu, 17 Aug 2023 08:16:55 +0000</pubDate>
      <link>https://dev.to/chrisphan/exploring-the-top-kubernetes-monitoring-tools-for-seamless-cluster-management-4og5</link>
      <guid>https://dev.to/chrisphan/exploring-the-top-kubernetes-monitoring-tools-for-seamless-cluster-management-4og5</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Dev Community!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the rapidly evolving landscape of container orchestration and management, Kubernetes has taken center stage as the go-to solution for automating, scaling, and deploying containerized applications. As organizations increasingly adopt Kubernetes to streamline their operations, the importance of robust monitoring and observability tools becomes paramount. That's why I've put together an in-depth article highlighting the 7 Top Kubernetes Monitoring Tools that can empower your business to gain deep insights into your clusters, diagnose issues, optimize resource utilization, and ultimately deliver a seamless user experience.&lt;/p&gt;

&lt;p&gt;Read the full article here: &lt;a href="https://www.techvuehub.com/blog/7-top-kubernetes-monitoring-tools"&gt;https://www.techvuehub.com/blog/7-top-kubernetes-monitoring-tools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Overview:&lt;/strong&gt;&lt;br&gt;
Kubernetes monitoring tools are essential to ensuring the health, performance, and reliability of applications within these intricate containerized environments. From Prometheus to Grafana, and Elastic Stack (ELK) to Sumo Logic, each tool offers unique features and capabilities that contribute to a comprehensive monitoring strategy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's Inside:&lt;/strong&gt;&lt;br&gt;
In this article, you'll find an exploration of the top Kubernetes monitoring tools:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Elastic Stack (ELK):&lt;/strong&gt; Learn about Elasticsearch, Kibana, Beats, and Logstash as they pave the way for diverse use cases that start with logging and go beyond.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prometheus:&lt;/strong&gt; Discover how Prometheus stands out with its multidimensional data model, flexible query language (PromQL), and real-time alerting mechanisms.&lt;/p&gt;

&lt;p&gt;Grafana: Dive into the versatile world of Grafana, which excels in data visualization, monitoring, and dynamic dashboard creation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kube-state-metrics:&lt;/strong&gt; Understand how this tool simplifies the utilization of Kubernetes API metrics to monitor the health and performance of your resources.&lt;/p&gt;

&lt;p&gt;Datadog: Explore Datadog's powerful integration of traces, metrics, and logs to make your applications and infrastructure entirely observable.&lt;/p&gt;

&lt;p&gt;Sumo Logic: Learn about Sumo Logic's cutting-edge machine data analytics system tailored for cloud-native environments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;...and much more!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Why Should You Read It?&lt;br&gt;
Whether you're new to Kubernetes or a seasoned pro, this article will provide you with insights into the top monitoring tools that are shaping the Kubernetes landscape. These tools can help you ensure the stability, scalability, and performance of your applications in the dynamic world of cloud-native computing.&lt;/p&gt;

&lt;p&gt;So, if you're eager to supercharge your Kubernetes monitoring strategy, gain valuable insights, and elevate your application performance, be sure to check out the full article: &lt;a href="https://www.techvuehub.com/blog/7-top-kubernetes-monitoring-tools"&gt;https://www.techvuehub.com/blog/7-top-kubernetes-monitoring-tools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't miss out on the opportunity to level up your Kubernetes monitoring game. Let's embrace the power of these tools together!&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>monitoring</category>
      <category>grafana</category>
      <category>prometheus</category>
    </item>
    <item>
      <title>7 Top Kubernetes Monitoring Tools - TechVueHub</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Wed, 16 Aug 2023 16:00:48 +0000</pubDate>
      <link>https://dev.to/chrisphan/7-top-kubernetes-monitoring-tools-techvuehub-16ja</link>
      <guid>https://dev.to/chrisphan/7-top-kubernetes-monitoring-tools-techvuehub-16ja</guid>
      <description>&lt;p&gt;📢 Just dropped a knowledge-packed article for all the DevOps and Kubernetes enthusiasts out there! 🚀 If you're navigating the complex landscape of Kubernetes monitoring tools, this one's for you. 👀 Dive into my latest piece where I break down the 7 Top Kubernetes Monitoring Tools that are changing the game:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Elastic Stack (ELK) 🐘:&lt;/strong&gt; Your go-to trio for next-level monitoring and logging using Elasticsearch, Logstash, and Kibana. 📊&lt;br&gt;
&lt;strong&gt;Prometheus 🏛️:&lt;/strong&gt; Unleash the power of open-source metrics collection and smart alerting. 🔍&lt;br&gt;
Grafana 📈: Create dynamic, eye-catching dashboards to visualize your Kubernetes data like a pro. 📊&lt;br&gt;
&lt;strong&gt;Kube-state-metrics 📋:&lt;/strong&gt; Real-time insights into your Kubernetes objects and resource states. 🔄&lt;br&gt;
&lt;strong&gt;Datadog 📊:&lt;/strong&gt; Elevate observability with specialized monitoring and analytics. 📈&lt;br&gt;
**Sumo Logic 📑: **Get deep insights using cloud-native, machine data analytics. 📊&lt;br&gt;
...and a lot more to explore!&lt;/p&gt;

&lt;p&gt;💡 From pros and cons to key features, my article provides an in-depth look at each tool. No matter if you're a seasoned pro or just dipping your toes into the Kubernetes world, this guide will equip you with the knowledge to choose the right tool for your needs.&lt;/p&gt;

&lt;p&gt;🔗 Ready to level up your Kubernetes game? Read the full article here: &lt;a href="https://www.techvuehub.com/blog/7-top-kubernetes-monitoring-tools"&gt;7 Top Kubernetes Monitoring Tools&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's spark a conversation! Feel free to drop your thoughts, questions, and experiences in the comments. Your insights might just help someone make the best decision for their Kubernetes setup.&lt;/p&gt;

&lt;p&gt;Tags: #Kubernetes #DevOps #MonitoringTools #CloudNative #TechDeepDive&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>monitoringtools</category>
      <category>cloudnative</category>
    </item>
    <item>
      <title>Simplifying Amazon S3 Downloads: Your Guide to Effortless Retrieval</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Sun, 13 Aug 2023 03:45:32 +0000</pubDate>
      <link>https://dev.to/chrisphan/simplifying-amazon-s3-downloads-your-guide-to-effortless-retrieval-10cd</link>
      <guid>https://dev.to/chrisphan/simplifying-amazon-s3-downloads-your-guide-to-effortless-retrieval-10cd</guid>
      <description>&lt;p&gt;Hey Dev.to Community! 🌟&lt;/p&gt;

&lt;p&gt;Are you diving into Amazon Web Services (AWS) and need to effortlessly download files or folders from Amazon S3? I've got you covered with my latest article, "Simplifying Amazon S3 Downloads."&lt;/p&gt;

&lt;p&gt;No matter if you're an AWS pro or just starting, this article lays out user-friendly methods for smooth retrieval. From mastering the AWS Console to demystifying IAM permissions, you'll be all set to handle S3 resources like a pro.&lt;/p&gt;

&lt;p&gt;Read the full article here: &lt;a href="https://www.techvuehub.com/blog/download-file-from-s3-bucket"&gt;How to download files from S3 bucket (Update 2023)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And here's the cherry on top – for those hungry to further fuel their AWS journey, my website offers a treasure trove of comprehensive resources, tutorials, and insider tips.&lt;/p&gt;

&lt;p&gt;Visit my website: &lt;a href="https://www.techvuehub.com/"&gt;https://www.techvuehub.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Share this valuable resource with fellow AWS enthusiasts and let's continue to learn and advance our cloud skills together! 💻🚀 &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RIjmkos7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/riisv7ndn9tygs5g973z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RIjmkos7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/riisv7ndn9tygs5g973z.png" alt="Image description" width="800" height="400"&gt;&lt;/a&gt;#AWS #AmazonS3 #CloudComputing #TechCommunity&lt;/p&gt;

</description>
      <category>aws</category>
      <category>s3</category>
      <category>cloudstorage</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>🔥 Unleash the Power of React's useState Hook! 🔥</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Thu, 10 Aug 2023 09:05:36 +0000</pubDate>
      <link>https://dev.to/chrisphan/unleash-the-power-of-reacts-usestate-hook-2n73</link>
      <guid>https://dev.to/chrisphan/unleash-the-power-of-reacts-usestate-hook-2n73</guid>
      <description>&lt;p&gt;Are you ready to elevate your React development game? 🚀 Let's dive into the world of state management with the useState hook – a game-changer for functional components!&lt;/p&gt;

&lt;p&gt;Introduction:&lt;br&gt;
🌟 In our latest article, we're delving deep into how the useState hook can revolutionize your React applications. If you're looking to simplify state management, enhance component-level control, and embrace modern techniques, this is your guide!&lt;/p&gt;

&lt;p&gt;Key Points:&lt;/p&gt;

&lt;p&gt;Effortless State Management: Bid farewell to complex class components. With useState, managing state in functional components becomes a breeze, boosting your development efficiency.&lt;/p&gt;

&lt;p&gt;Streamlined Control: Each functional component maintains its local state, ensuring a clear and independent state management approach. Say goodbye to shared state confusion!&lt;/p&gt;

&lt;p&gt;Functional Updates: Gone are the days of manual state modifications. The useState hook's update function keeps your state updates smooth and based on previous values.&lt;/p&gt;

&lt;p&gt;Practical Example:&lt;br&gt;
🚀 Let's put theory into practice! Ever needed a toggle button to reveal hidden content? We've got you covered. Witness how the useState hook transforms a simple toggle scenario into a piece of cake.&lt;/p&gt;

&lt;p&gt;Conclusion:&lt;br&gt;
🌈 The useState hook isn't just another tool – it's a transformative asset in the world of modern React development. By incorporating it into your toolkit, you'll be equipped to streamline your applications, manage state like a pro, and embrace the brilliance of functional components.&lt;/p&gt;

&lt;p&gt;Ready to embark on this exciting journey? Check out the full article &lt;a href="https://blog.galistack.com/react-usestate-hook-managing-state-in-functional-components"&gt;here &lt;/a&gt;and join us in mastering the art of state management with React's useState hook. 🎉👩‍💻 #ReactDevelopment #StateManagement #ReactHooks #FunctionalComponents&lt;/p&gt;

</description>
      <category>react</category>
      <category>reacthooks</category>
      <category>reactnative</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Deploying AWS Load Balancer Controller In Elastic Kubernetes Service</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Thu, 10 Aug 2023 06:49:51 +0000</pubDate>
      <link>https://dev.to/chrisphan/deploying-aws-load-balancer-controller-in-elastic-kubernetes-service-4ebh</link>
      <guid>https://dev.to/chrisphan/deploying-aws-load-balancer-controller-in-elastic-kubernetes-service-4ebh</guid>
      <description>&lt;p&gt;🚀 Excited to Share: Deploying AWS Load Balancer Controller in Kubernetes 🚀&lt;/p&gt;

&lt;p&gt;Are you looking to enhance the performance and availability of your applications in a Kubernetes environment on AWS? Look no further! 🌐&lt;/p&gt;

&lt;p&gt;In my latest article, I've put together a step-by-step guide on how to deploy the AWS Load Balancer Controller in your Kubernetes cluster. This controller is a game-changer when it comes to efficient load balancing, ensuring seamless user experiences and optimized resource utilization.&lt;/p&gt;

&lt;p&gt;🔗 Read the full guide here: &lt;a href="https://sofreview.vercel.app/posts/deploy-aws-load-balancer-controller-ingress-eks"&gt;Deploy AWS Load Balancer controller on Elastic Kubernetes Service&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔍 In this guide, you'll learn about:&lt;/p&gt;

&lt;p&gt;📌 Prerequisites: Get your Kubernetes cluster and AWS IAM credentials in place to set the stage for successful deployment.&lt;/p&gt;

&lt;p&gt;📌 Creating an IAM Role: Learn how to establish an IAM role to grant the controller the right permissions for managing AWS resources.&lt;/p&gt;

&lt;p&gt;📌 Deploying the Controller: I walk you through using Helm to deploy the AWS Load Balancer Controller. It's simpler than you might think!&lt;/p&gt;

&lt;p&gt;📌 Associating Load Balancers: Discover the crucial step of connecting your Load Balancers with Kubernetes services for effective traffic routing.&lt;/p&gt;

&lt;p&gt;This guide is aimed at simplifying the deployment process and helping you harness the power of AWS Load Balancer Controller for your Kubernetes applications.&lt;/p&gt;

&lt;p&gt;Make your Kubernetes workloads shine on AWS with this comprehensive guide. Let's navigate the world of load balancing together! 🌐🎉&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://sofreview.vercel.app/posts/deploy-aws-load-balancer-controller-ingress-eks"&gt;https://sofreview.vercel.app/posts/deploy-aws-load-balancer-controller-ingress-eks&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  AWS #Kubernetes #LoadBalancing #CloudInfrastructure
&lt;/h1&gt;

</description>
      <category>aws</category>
      <category>kubernetes</category>
      <category>eks</category>
      <category>microservices</category>
    </item>
    <item>
      <title>Deploying Falco on Kubernetes (EKS) for Enhanced Security</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Wed, 09 Aug 2023 16:54:20 +0000</pubDate>
      <link>https://dev.to/chrisphan/deploying-falco-on-kubernetes-eks-for-enhanced-security-3k18</link>
      <guid>https://dev.to/chrisphan/deploying-falco-on-kubernetes-eks-for-enhanced-security-3k18</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In today's dynamic and ever-evolving landscape of cloud-native applications, security is paramount. Kubernetes, the popular container orchestration platform, empowers organizations to efficiently manage and scale their applications. However, ensuring the security of these environments demands robust monitoring and detection mechanisms.&lt;br&gt;
Enter Falco — an open-source, runtime security tool designed to provide real-time threat detection in Kubernetes environments. By continuously analyzing system behavior and network activity, Falco helps identify and alert on potential security threats, enhancing your ability to safeguard your applications and data.&lt;/p&gt;

&lt;p&gt;In this article, we'll guide you through the process of deploying Falco on Amazon's Elastic Kubernetes Service (EKS), a managed Kubernetes solution that simplifies cluster management and scaling. By leveraging the power of Helm, the Kubernetes package manager, we'll demonstrate how to seamlessly integrate Falco into your EKS cluster.&lt;/p&gt;

&lt;p&gt;To continue reading and unlock the potential of Falco for bolstering the security of your Kubernetes workloads, check out the &lt;a href="https://sofreview.vercel.app/posts/deploy-falco-on-eks-kubernetes-helm"&gt;Deploying Falco on Kubernetes (EKS) using Helm (Update 2023)&lt;/a&gt; to dive into the step-by-step deployment process and configuration details.&lt;/p&gt;

&lt;p&gt;By the end of this journey, you'll not only have Falco up and running in your EKS cluster but also gain a deeper understanding of how to fortify your Kubernetes environment against potential security threats.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>falco</category>
      <category>security</category>
      <category>aws</category>
    </item>
    <item>
      <title>Monitoring EKS audit logs with Falco security</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Mon, 31 Jul 2023 16:32:53 +0000</pubDate>
      <link>https://dev.to/chrisphan/monitoring-eks-audit-logs-with-falco-security-2f9</link>
      <guid>https://dev.to/chrisphan/monitoring-eks-audit-logs-with-falco-security-2f9</guid>
      <description>&lt;p&gt;Amazon EKS control plan logging provide audit and diagnostic logs directly from the Amazon EKS control plan to CloudWatch Logs in AWS account. The following cluster control plan log types correspond components of the Kubernetes control plane:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API server: which exposes &lt;a href="https://kubernetes.io/docs/concepts/overview/kubernetes-api/"&gt;the Kubernetes API&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Audit: Kubernetes &lt;a href="https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/"&gt;audit logs&lt;/a&gt; provide record of individual users, administrators, or system components.&lt;/li&gt;
&lt;li&gt;Authenticator: This logs is unique to Amazon ESK, represent the control plane component, &lt;a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-managing.html"&gt;cluster management&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Controller manager: Manage core control loops and watch the state of cluster through apiserver and attemping to move the current state towards desired state, &lt;a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/"&gt;kube-controller-manager&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Scheduler: &lt;a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/"&gt;scheduler component&lt;/a&gt; manages when and where to run Pods.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Monitoring Amazon Elastic Kubernetes (Amazon EKS) audit Logs is an essential practice for enhancing the security and visibility of your Kubernetes clusters.&lt;/p&gt;

&lt;p&gt;At a high-level overview, Falco is comprised of the following components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Event sources (drivers, Kubernetes audit events).&lt;/li&gt;
&lt;li&gt;A set of rules.&lt;/li&gt;
&lt;li&gt;Output system integration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Currently, the Falco support two types of drivers: &lt;a href="https://linux-kernel-labs.github.io/refs/heads/master/labs/kernel_modules.html"&gt;kernal module&lt;/a&gt; and &lt;a href="https://ebpf.io/what-is-ebpf/"&gt;eBPF probe&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Monitoring the EKS audit logs is beneficial for detect anomalous behavior (e.g. unauthorized access attempts, privilege escalations, abnormal resource usage). In addition, Falco also allow to custom rules tailored to your specific security needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Falco
&lt;/h2&gt;

&lt;p&gt;Before Falco version 0.33.0, Falco allows to tracks the changed of Kubernetes audit event basing rule defined in &lt;a href="https://github.com/falcosecurity/plugins/blob/master/plugins/k8saudit/rules/k8s_audit_rules.yaml"&gt;k8s audit rule&lt;/a&gt;. However, there was no direct component allowing to monitor EKS audit event. There were two options at that time:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Deploy an EKS CloudWatch component to retrieve logs from AWS CloudWatch and push to Falco.&lt;/li&gt;
&lt;li&gt;Using Falco EKS audit bridge, which is using AWS Kinesis Firehose and S3 for transferring data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, Falco have introduced a &lt;a href="https://github.com/falcosecurity/plugins/tree/master/shared/go/aws"&gt;plugin framework&lt;/a&gt; which allows to pull logs from AWS CloudWatch Logs Stream. &lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisite
&lt;/h3&gt;

&lt;p&gt;Before deploying Falco, you need to ensure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Amazon EKS Cluster set up and running.&lt;/li&gt;
&lt;li&gt;kubectl installed in your local workstation or jump-host server where allowing to connect to the cluster.&lt;/li&gt;
&lt;li&gt;Helm package manager installed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Install Falco
&lt;/h3&gt;

&lt;p&gt;Installing Falco will go through the steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prepare IAM role service account.&lt;/li&gt;
&lt;li&gt;Prepare Falco helm values.&lt;/li&gt;
&lt;li&gt;Deploy Falco on the EKS cluster.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Create IAM Role service account
&lt;/h4&gt;

&lt;p&gt;To allow Kubernetes Pods in EKS connect to AWS services we have to create an IAM role which have Assume Role With Web Identity and associated to Kubernetes service accounts where the pods using. In this case, the Falco need to pull the AWS CloudWatch EKS audit logs so it has to associated to IAM role having permission to access AWS CloudWatch logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Sid":"ReadAccessToCloudWatchLogs",
      "Effect":"Allow",
      "Action":[
        "logs:Describe*",
        "logs:FilterLogEvents",
        "logs:Get*",
        "logs:List*"
      ],
      "Resource":[
        "arn:aws:logs:${REGION}:${ACCOUNT_ID}:log-group:/aws/eks/${CLUSTER_NAME}/cluster:*"
      ]
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From the code block above, replace the following parameters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;REGION: where the EKS cluster deploy.&lt;/li&gt;
&lt;li&gt;ACCOUNT_ID: AWS account id.&lt;/li&gt;
&lt;li&gt;CLUSTER_NAME: name of EKS cluster which deploy the Falco.
We also need to create a assume role for web identity with the following information:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "Federated": "arn:aws:iam::${ACCOUNT_ID}:oidc-provider/${OIDC_PROVIDER}"
      },
      "Action": "sts:AssumeRoleWithWebIdentity",
      "Condition": {
        "StringEquals": {
          "${OIDC_PROVIDER}:aud": "sts.amazonaws.com",
          "${OIDC_PROVIDER}:sub": "system:serviceaccount:${NAMESPACE}:${SERVICE_ACCOUNT}"
        }
      }
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From the code block, replace the following parameters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ACCOUNT_ID: AWS account id.&lt;/li&gt;
&lt;li&gt;OIDC_PROVIDER: OpenID Connect (OIDC) which can copy from AWS EKS console.&lt;/li&gt;
&lt;li&gt;NAMESPACE: The namespace where Falco running.&lt;/li&gt;
&lt;li&gt;SERVICE_ACCOUNT: The Kubernetes service account which is associated to Kubernetes pods used to interact AWS CloudWatch logs.
Follow the document &lt;a href="https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html"&gt;Kubernetes service account IAM role&lt;/a&gt; to deploy the role to AWS. Or using terraform code to deploy the IAM. Clone the source code &lt;a href="https://github.com/galiops/galireview/tree/main/blogs/falco/infra"&gt;https://github.com/galiops/galireview/tree/main/blogs/falco/infra&lt;/a&gt; to local, then adding values for the variables in variables.tf file. After that, run the following command to deploy to AWS:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# cd into the codebase
terraform init
terraform plan
terraform deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After deploy, we need to copy the IAM role to use for deploy Falco helm chart. The format of the IAM role is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;arn:aws:iam::&amp;lt;AWS_ACCOUNT_ID&amp;gt;:role/system-galireview-falco-worker-role
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also get the IAM from AWS console -&amp;gt; IAM -&amp;gt; Role -&amp;gt; search for the role name: system-galireview-falco-worker-role -&amp;gt; copy the ARN.&lt;/p&gt;

&lt;h4&gt;
  
  
  Prepare Falco helm charts
&lt;/h4&gt;

&lt;p&gt;An official Falco helm charts can be found from &lt;a href="https://artifacthub.io/packages/helm/falcosecurity/falco"&gt;falcosecurity/falco&lt;/a&gt; ArtifactHub.&lt;br&gt;
From local create an folder name falco and create the following files and folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.
|-charts/
|-Chart.yaml
|_values.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;cd into the charts folder and run the following command to download the latest Falco chart (3.4.1).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd charts
wget https://github.com/falcosecurity/charts/releases/download/falco-3.4.1/falco-3.4.1.tgz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adding the following information for Chart.yaml file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: falco
version: 3.1.1
appVersion: "0.34.1"
description: Falco
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The values.yaml can be found from the link &lt;a href="https://github.com/galiops/galireview/blob/main/blogs/falco/ops/values.yaml"&gt;https://github.com/galiops/galireview/blob/main/blogs/falco/ops/values.yaml&lt;/a&gt;. Make sure change the two values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ROLE_ARN: The IAM role created from the previous step.&lt;/li&gt;
&lt;li&gt;CLUSTER_NAME: EKS cluster name.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Deploy Falco on the EKS cluster
&lt;/h4&gt;

&lt;p&gt;You already setup and prepare things for deploying Falco security which allow pull audit log from AWS CloudWatch to Falco for monitoring. To deploy the Falco to EKS, follow the steps below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# using kubectl to connect to EKS cluster
aws eks update-kubeconfig --name CLUSTER_NAME --region REGION_ID
# create falco namespace
kubectl create namespace falco
# cd in helm chart folder
helm install falco . -n falco -f values.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Verification
&lt;/h2&gt;

&lt;p&gt;After deploying Falco on Kubernetes, it's crucial to verify that it is functioning correctly and monitoring your cluster for security events as expected. Here are some verification steps you can take:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Check Falco deployment status
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get po -n falco
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Verify Falco logs
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl logs &amp;lt;falco-pod-name&amp;gt; -n falco
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The logs should not show critical issue.&lt;/li&gt;
&lt;li&gt;You can also generate some test events by follow the link &lt;a href="https://github.com/falcosecurity/event-generator/tree/main"&gt;https://github.com/falcosecurity/event-generator/tree/main&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In conclusion, the installation of Falco on Kubernetes is a straightforward yet powerful process that empowers organizations to bolster the security of their containerized applications and Kubernetes clusters. By following the step-by-step guide provided above, you can seamlessly integrate Falco into EKS environment and gain real-time security insights and protection. Check out the &lt;a href="https://www.galireview.com/blog/how-to-deploy-falco-on-k8s-eks/"&gt;How to deploy Falco on Kubernetes (EKS)&lt;/a&gt; or &lt;a href="https://sofreview.vercel.app/posts/deploy-falco-on-eks-kubernetes-helm"&gt;Deploying Falco on Kubernetes (EKS) using Helm (Update 2023)&lt;/a&gt; for more detail and other instructions when working with Falco.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>eks</category>
      <category>falco</category>
      <category>cloudsecurity</category>
    </item>
    <item>
      <title>How to deploy gatsby static website on S3 and Cloudfront</title>
      <dc:creator>Chris Phan</dc:creator>
      <pubDate>Mon, 17 Jul 2023 09:53:12 +0000</pubDate>
      <link>https://dev.to/chrisphan/how-to-deploy-gatsby-static-website-on-s3-and-cloudfront-3f4e</link>
      <guid>https://dev.to/chrisphan/how-to-deploy-gatsby-static-website-on-s3-and-cloudfront-3f4e</guid>
      <description>&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;In this page we will walks through how to deploy a Gatsby static website to AWS using S3 bucket and Cloudfront to improve loading time of site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisite
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Assume that you already have a AWS account and setup profile from local workstation. Check out the document to setup AWS profile at local machine.&lt;/li&gt;
&lt;li&gt;A Gatsby application deploped from machine and ready for deploy to AWS S3 and CloudFront.&lt;/li&gt;
&lt;li&gt;From AWS console, go to S3 bucket and create an S3 bucket e.g demobucket.com, the bucket name also is domain name for the static websit (it is optional to have bucket name match domain name if you using CloudFront). Follow the document to &lt;a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/HostingWebsiteOnS3Setup.html"&gt;config website hosting for S3 bucket &lt;/a&gt;
## Implement
To allow deploying to S3 we need to install additional S3 plugin and config gatsby-config.js file to to ready for use.
First make sure npm installed, then run the following to install s3 plugin
&lt;code&gt;npm install gatsby-plugin-s3&lt;/code&gt;
Now the plugin already installed, we start adding configuration in gatsby-config.js
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins: [
  {
    resolve: `gatsby-plugin-s3`,
    options: {
      bucketName: "&amp;lt;put-your-bucket-here&amp;gt;",
    },
  },
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To allow deploy to S3 bucket, first add the following code block to package.json file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "scripts": {
    "deploy": "gatsby-plugin-s3 deploy"
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then connect to the AWS by export the profile, follow the link to &lt;a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html"&gt;config AWS profile&lt;/a&gt; from your local machine. After that, run build and deploy to do a build and deploy to the S3 bucket.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run build
npm run deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can access to the S3 bucket and access from web browser for the static web. If you need an integration between Amazon S3 and Cloudfront check out the document &lt;a href="https://www.galireview.com/blog/static-website-on-amazon-s3-and-cloudfront/"&gt;Static website on Amazon S3 and Cloudfront&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>staticwebapps</category>
      <category>gatsby</category>
      <category>staticwebsite</category>
      <category>seo</category>
    </item>
  </channel>
</rss>
