<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohit Bishesh on Medium]]></title>
        <description><![CDATA[Stories by Mohit Bishesh on Medium]]></description>
        <link>https://medium.com/@mohitbishesh7?source=rss-f52abba32bf2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pMojf9FMAP-mhbEV</url>
            <title>Stories by Mohit Bishesh on Medium</title>
            <link>https://medium.com/@mohitbishesh7?source=rss-f52abba32bf2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:02:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohitbishesh7/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Securing Your EKS Cluster: Best Practices and Real-World Scenarios for IAM, RBAC, and Network…]]></title>
            <link>https://medium.com/@mohitbishesh7/securing-your-eks-cluster-best-practices-and-real-world-scenarios-for-iam-rbac-and-network-91e03d1609ee?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/91e03d1609ee</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[elastickubernetesservice]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Sun, 23 Feb 2025 20:04:41 GMT</pubDate>
            <atom:updated>2025-02-23T20:04:41.783Z</atom:updated>
            <content:encoded><![CDATA[<h3>Securing Your EKS Cluster: Best Practices and Real-World Scenarios for IAM, RBAC, and Network Policies</h3><h3>Introduction</h3><p>Amazon Elastic Kubernetes Service (EKS) provides a managed Kubernetes environment, but securing an EKS cluster requires additional configurations. Security breaches can occur due to misconfigurations, excessive permissions, or network vulnerabilities. This guide explores best practices for securing an EKS cluster, focusing on IAM (Identity and Access Management), RBAC (Role-Based Access Control), and network policies.</p><h3>1. IAM Best Practices for EKS</h3><h4>What is IAM?</h4><p><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html">AWS Identity and Access Management (IAM) </a>is a service that enables administrators to manage access to AWS resources securely. It allows the creation of users, groups, and roles with granular permissions, ensuring the principle of least privilege is enforced.</p><h4>Use IAM Roles for Service Accounts (IRSA)</h4><h4>What is IRSA?</h4><p><a href="https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html">IAM Roles for Service Accounts (IRSA)</a> is an AWS feature that allows Kubernetes workloads to assume IAM roles securely. This eliminates the need to grant excessive permissions at the node level and improves security by isolating permissions to specific pods.</p><ul><li>IRSA allows Kubernetes workloads to assume IAM roles securely without relying on node-level credentials.</li><li>Reduces the risk of privilege escalation by granting permissions at the pod level.</li><li>Example of creating an IAM role for a service account:</li></ul><pre>aws eks create-service-account --name my-app-sa --namespace my-namespace --role-arn arn:aws:iam::123456789012:role/my-app-role</pre><h4>Apply the Principle of Least Privilege</h4><ul><li>Grant only the necessary permissions for users, roles, and policies.</li><li>Example minimal IAM policy for accessing an EKS cluster:</li></ul><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: [&quot;eks:DescribeCluster&quot;],<br>      &quot;Resource&quot;: &quot;*&quot;<br>    }<br>  ]<br>}</pre><h4>Restrict IAM Access to the Control Plane</h4><ul><li>Limit eks:DescribeCluster and eks:ListClusters permissions.</li><li>Use IAM condition keys like aws:SourceIP to restrict access.</li></ul><h3>2. RBAC Best Practices for Kubernetes</h3><h4>What is RBAC?</h4><p><a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/">Role-Based Access Control (RBAC) </a>is a Kubernetes authorization mechanism that defines how users and applications interact with cluster resources. It assigns permissions through roles and bindings, ensuring only authorized users can perform specific actions.</p><h4>Understand Kubernetes RBAC</h4><ul><li>Use Role and ClusterRole to define permissions.</li><li>Use RoleBinding and ClusterRoleBinding to assign roles to users or service accounts.</li></ul><h4>Grant Minimal Permissions</h4><ul><li>Avoid using system:masters for users unless necessary.</li><li>Example of a restrictive Role for read-only access to pods:</li></ul><pre>apiVersion: rbac.authorization.k8s.io/v1<br>kind: Role<br>metadata:<br>  namespace: default<br>  name: pod-reader<br>rules:<br>- apiGroups: [&quot;&quot;]  # Targets the core API group<br>  resources: [&quot;pods&quot;]  # Specifies that this role applies to pods<br>  verbs: [&quot;get&quot;, &quot;list&quot;]  # Allows only read actions on pods</pre><h4>Use Groups for Access Control</h4><ul><li>Map AWS IAM users to Kubernetes RBAC using the aws-auth ConfigMap.</li></ul><h4>Monitor and Audit RBAC Permissions</h4><ul><li>Regularly check permissions using:</li></ul><pre>kubectl auth can-i --list</pre><ul><li>Use tools like rbac-lookup for audits.</li></ul><h3>3. Network Policies for EKS Security</h3><h4>What are Network Policies?</h4><p><a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/">Kubernetes Network Policies define</a> how pods can communicate with each other and with external services. These policies enforce traffic restrictions, reducing the attack surface of a cluster.</p><h4>Use Kubernetes Network Policies</h4><ul><li>Restrict traffic between pods and namespaces.</li><li>Example of a simple network policy allowing traffic only from a specific namespace:</li></ul><pre>apiVersion: networking.k8s.io/v1<br>kind: NetworkPolicy<br>metadata:<br>  name: allow-namespace  # Name of the network policy<br>  namespace: default  # Namespace where this policy is applied<br>spec:<br>  podSelector:<br>    matchLabels:<br>      app: my-app  # Targets pods labeled with app=my-app<br>  ingress:<br>  - from:<br>    - namespaceSelector:<br>        matchLabels:<br>          name: trusted-namespace  # Only allows ingress traffic from pods in this namespace</pre><h4>Restrict Public Access to the API Server</h4><ul><li>Use private endpoints when possible.</li><li>If public access is needed, whitelist trusted IPs.</li></ul><h4>Use Security Groups for Pods (SGP)</h4><ul><li>Apply fine-grained security rules at the pod level.</li></ul><h4>Enable VPC Flow Logs and AWS WAF</h4><ul><li>Use VPC Flow Logs to monitor network traffic.</li><li>Apply AWS WAF to protect against web-based attacks.</li></ul><h3>4. Additional Security Measures</h3><ul><li><strong>Enable AWS Shield and GuardDuty</strong> for real-time threat detection.</li><li><strong>Use AWS Secrets Manager</strong> instead of storing secrets in ConfigMaps.</li><li><strong>Rotate Credentials Regularly</strong> for IAM roles, Kubernetes secrets, and API keys.</li></ul><h3>6. Real-World Example: Secure Multi-Tenant EKS Cluster</h3><h3>Scenario: SaaS Platform with Multiple Tenants</h3><p>Imagine you are managing a Software-as-a-Service (SaaS) platform running on EKS, where different customers (tenants) have their own isolated environments. The security challenge is to prevent unauthorized access between tenants while ensuring that each tenant can access only their own resources.</p><h3>How Security Best Practices Are Applied:</h3><h4>IAM:</h4><ul><li>Each tenant’s application runs in a separate namespace.</li><li>IRSA is used to grant pods only the necessary AWS permissions (e.g., access to tenant-specific S3 buckets).</li><li>Example IAM role for a tenant’s service account:</li></ul><pre>apiVersion: eksctl.io/v1alpha5<br>kind: IAMServiceAccount<br>metadata:<br>  name: tenant-a-sa<br>  namespace: tenant-a<br>spec:<br>  attachPolicyARNs:<br>  - arn:aws:iam::123456789012:policy/TenantAS3Access</pre><h4>RBAC:</h4><ul><li>Kubernetes RBAC ensures that each tenant can only interact with their own namespace.</li><li>Example RoleBinding restricting a tenant’s user access:</li></ul><pre>apiVersion: rbac.authorization.k8s.io/v1<br>kind: RoleBinding<br>metadata:<br>  name: tenant-a-user-access<br>  namespace: tenant-a<br>subjects:<br>  - kind: User<br>    name: user@tenant-a.com<br>    apiGroup: rbac.authorization.k8s.io<br>roleRef:<br>  kind: Role<br>  name: tenant-a-role<br>  apiGroup: rbac.authorization.k8s.io</pre><h4>Network Policies:</h4><ul><li>Enforce strict network segmentation between tenants using Network Policies.</li><li>Example Network Policy allowing only tenant-a apps to communicate internally:</li></ul><pre>apiVersion: networking.k8s.io/v1<br>kind: NetworkPolicy<br>metadata:<br>  name: tenant-a-isolation<br>  namespace: tenant-a<br>spec:<br>  podSelector:<br>    matchLabels:<br>      tenant: a<br>  ingress:<br>    - from:<br>      - podSelector:<br>          matchLabels:<br>            tenant: a<br>  policyTypes:<br>    - Ingress</pre><p>This real-world example showcases how IAM, RBAC, and Network Policies work together to secure an EKS cluster in a multi-tenant SaaS environment.</p><h3>5. Common Security Mistakes and How to Fix Them</h3><ul><li><strong>Over-permissioned IAM roles</strong> → Use least privilege access.</li><li><strong>Exposing services without restrictions</strong> → Apply network policies.</li><li><strong>Using static credentials</strong> → Use IRSA for pod-specific IAM permissions.</li></ul><h3>6. Best Practices Checklist</h3><p>✅ Implement IRSA to restrict pod permissions.<br>✅ Use RBAC roles with minimal permissions.<br>✅ Apply Kubernetes Network Policies to control traffic.<br>✅ Restrict access to the Kubernetes API server.<br>✅ Monitor and audit IAM, RBAC, and network policies regularly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*CXOjp40ffDS0IW7vU89YKg.png" /></figure><h3>8. Conclusion</h3><p>Securing an EKS cluster requires a layered approach using IAM, RBAC, and network policies. By applying the best practices outlined in this guide, you can reduce security risks and protect your workloads. Stay proactive by continuously monitoring and auditing your configurations. For further reading, refer to AWS documentation and security best practices guides.</p><h3>9. Reference:</h3><p>Refer to the official documentation below for more details:</p><ul><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html">AWS IAM Documentation</a></li><li><a href="https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html">EKS IAM Roles for Service Accounts</a></li><li><a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/">Kubernetes RBAC Reference</a></li><li><a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/">Kubernetes Network Policies</a></li></ul><p>Let’s connect together to AWS and it’s services in more detail to help others and solve the real-world problems:<br><a href="https://www.linkedin.com/in/mohit-bishesh/">https://www.linkedin.com/in/mohit-bishesh/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91e03d1609ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Containers on AWS: ECS vs. EKS vs. Fargate — Which One Should You Choose?]]></title>
            <link>https://medium.com/@mohitbishesh7/running-containers-on-aws-ecs-vs-eks-vs-fargate-which-one-should-you-choose-af1ece81c8ae?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/af1ece81c8ae</guid>
            <category><![CDATA[fargate]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[elastic-container-service]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 18:35:41 GMT</pubDate>
            <atom:updated>2025-02-11T18:35:41.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>Running Containers on AWS: ECS vs. EKS vs. Fargate — Which One Should You Choose?</h3><h4>Introduction</h4><p>With the advent of containerization, AWS offers several options to run containers efficiently. Among them, Amazon Elastic Container Service (ECS), Amazon Elastic Kubernetes Service (EKS), and AWS Fargate are the most important choices. Each service has its advantages and is suitable for different use cases. In this blog, we will discuss ECS, EKS, and Fargate and compare their features to help you decide which service to choose based on your specific needs.<br>Amazon Elastic Container Service (ECS) is a fully managed container service used for deploying and running containerized applications over AWS. ECS allows developers to deploy, manage, and scale containerized applications without having to worry about the underlying infrastructure. It is integrated with AWS services, providing a seamless experience for AWS users.</p><h4>What is AWS ECS?</h4><p>ECS stands for Elastic Containers Service. It supports two launch types: EC2 and Fargate. EC2 launch types allow you to run the following EC2 instances, giving you more control over your costs and infrastructure. With Fargate deployments, AWS manages the infrastructure, so you can focus only on delivering and scaling your applications.</p><h4>Key Features of ECS:</h4><ul><li><strong>Managed Control Plane:</strong> AWS handles cluster management, reducing operational overhead.</li><li><strong>Launch Options:</strong> Supports both EC2 instances and serverless deployments using Fargate.</li><li><strong>AWS-Native Integration:</strong> Works seamlessly with AWS services such as CloudWatch, IAM, and ALB.</li><li><strong>Simplified Deployment:</strong> Easily deploy and manage microservices and containerized applications.</li><li><strong>Service Discovery &amp; Load Balancing:</strong> ECS provides native service discovery and integrates with AWS Application Load Balancer (ALB) and Network Load Balancer (NLB).</li><li><strong>Cost Optimization:</strong> Ability to use Spot Instances to optimize costs.</li></ul><h4>Real-World Example: Microservices-Based E-commerce Platform</h4><p>Imagine a company called <strong>CrazyShop</strong> that operates a microservices-based e-commerce platform. Their architecture includes separate services for product catalog, orders, payments, and customer reviews. Here’s why <strong>ECS (with the EC2 launch type)</strong> fits their needs perfectly:</p><ul><li><strong>AWS-Native Integration:</strong> <strong>CrazyShop’s</strong> infrastructure heavily relies on AWS services. ECS integrates seamlessly with its existing AWS resources, simplifying management.</li><li><strong>Control and Customization:</strong> By using ECS on EC2 instances, they can optimize the cluster by selecting specific instance types and leveraging Spot Instances to save costs.</li><li><strong>Scalability:</strong> ECS allows <strong>CrazyShop</strong> to easily scale individual microservices based on demand.</li><li><strong>Cost Optimization:</strong> The ability to use Spot Instances and auto-scaling policies helps manage their budget effectively.</li></ul><h4>What is AWS EKS?</h4><p>Amazon Elastic Kubernetes Service (EKS) is a fully managed Kubernetes service that allows you to run Kubernetes workloads on AWS. Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. EKS simplifies running Kubernetes on AWS by handling cluster provisioning, scaling, and maintenance.</p><p>Unlike ECS, which is AWS-specific, EKS provides an open-source Kubernetes experience, making it an excellent choice for companies looking to run workloads across multiple cloud environments or on-premises.</p><h4>Key Features of EKS:</h4><ul><li><strong>Managed Kubernetes:</strong> AWS handles the Kubernetes control plane, ensuring high availability and security.</li><li><strong>Multi-Cloud and Hybrid Deployments:</strong> EKS supports workloads across AWS, on-premises, and other cloud providers.</li><li><strong>Kubernetes Ecosystem Compatibility:</strong> Works with Kubernetes-native tools like Helm, Prometheus, and Istio.</li><li><strong>Scalability:</strong> Easily scales to accommodate large-scale applications.</li><li>Addons: We can install or enable multiple addons like CNI plugin, EBS CSI Driver, ingress controller, etc.</li><li><strong>Advanced Networking:</strong> Supports AWS VPC CNI plugin for high-performance networking.</li><li><strong>High Availability:</strong> Runs across multiple Availability Zones for redundancy.</li></ul><h4>Real-World Example: Fintech Application with Multi-Cloud Strategy</h4><p>Consider a fintech company named <strong>TrustyFinn</strong> that develops a banking application requiring high security, compliance, and flexibility. Their application needs to be highly portable due to a hybrid strategy that involves on-premises infrastructure as well as cloud deployments.</p><ul><li><strong>Kubernetes Ecosystem:</strong> TrustyFinn already has expertise in Kubernetes and benefits from the vast ecosystem of tools native to Kubernetes.</li><li><strong>Multi-Cloud Flexibility:</strong> By choosing EKS, TrustyFinn ensures that its applications are not locked into AWS.</li><li><strong>Advanced Networking &amp; Security:</strong> EKS’s integration with AWS VPC and the CNI plugin provides robust networking and security controls.</li><li><strong>Scalability:</strong> The ability to run Kubernetes at scale allows TrustyFinn to handle increasing loads, especially during peak financial periods.</li></ul><h4>What is AWS Fargate?</h4><p>AWS Fargate is a serverless compute engine for running containers without managing the underlying infrastructure. It is designed to eliminate the need for managing EC2 instances or Kubernetes worker nodes, allowing developers to focus solely on their applications.</p><p>Fargate can be used with both <strong>ECS and EKS</strong>, providing flexibility for organizations that want to offload infrastructure management while leveraging containerized applications. It automatically scales based on demand and only charges for the resources used.</p><p><strong>Focus on Core Business:</strong> This allows ChatOlaa to dedicate more resources to improving their AI algorithms and user experience.</p><h3>Key Features of Fargate:</h3><ul><li><strong>Serverless Containers:</strong> Eliminates the need to provision or manage EC2 instances.</li><li><strong>Pay-Per-Use Pricing:</strong> Charges based on resource consumption, optimizing costs.</li><li><strong>Seamless Scaling:</strong> Automatically scales based on demand without manual intervention.</li><li><strong>Security:</strong> Provides built-in isolation at the container level.</li><li><strong>Simplified Deployment:</strong> No need to manage cluster nodes or patch servers.</li></ul><h3>Real-World Example: AI-Powered Chatbot for a Startup</h3><p>A startup called <strong>ChatOlaa</strong> is launching an AI-powered chatbot application. As a young company, ChatOlaa wants to focus on innovation rather than infrastructure management.</p><ul><li><strong>Operational Simplicity:</strong> By using Fargate, ChatOlaa can deploy containers without worrying about the underlying EC2 instances.</li><li><strong>Auto-Scaling and Cost Efficiency:</strong> The application’s usage is highly unpredictable, and Fargate automatically scales the container resources in response to demand.</li><li><strong>Quick Time-to-Market:</strong> With Fargate’s serverless model, ChatOlaa can quickly deploy updates without infrastructure provisioning delays.</li><li><strong>Focus on Core Business:</strong> This allows ChatOlaa to dedicate more resources to improving their AI algorithms and user experience.</li></ul><h3>ECS vs. EKS vs. Fargate — A Feature Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*VuLG2cm-AxQ6_DSN6MDQVQ.png" /><figcaption>Comparision table</figcaption></figure><h3>Conclusion</h3><p>AWS provides multiple options for running containers, each suited for different use cases. <strong>ECS</strong> is great for AWS-native applications, <strong>EKS</strong> is ideal for Kubernetes workloads, and <strong>Fargate</strong> is perfect for those who want a serverless, hands-off experience. Your choice depends on your team’s expertise, workload complexity, and operational requirements.</p><p>Are you using ECS, EKS, or Fargate? Share your experience in the comments below! If you’re new to AWS containers, start experimenting today and find the best fit for your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af1ece81c8ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resize AWS EBS volume storage with zero downtime!!]]></title>
            <link>https://medium.com/@mohitbishesh7/resize-aws-ebs-volume-storage-with-zero-downtime-536f064f3a52?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/536f064f3a52</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[update-ebs-volume]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[ebs-volume]]></category>
            <category><![CDATA[ebs-snapshots]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 05:01:46 GMT</pubDate>
            <atom:updated>2025-01-07T05:01:46.678Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>In this blog, I will guide you through the process of increasing the size of an Elastic Block Store (EBS) volume attached to an Amazon EC2 instance without causing downtime. This step-by-step tutorial will ensure your application remains online while scaling your storage to meet growing demands.</p><p>Here’s a more detailed discussion for the section <strong>“Why Increase EBS Volume?”</strong>:</p><p><strong>Why Increase EBS Volume?</strong></p><p>Elastic Block Store (EBS) is a highly scalable, reliable storage solution designed for Amazon EC2. However, as your workload evolves, your storage requirements can grow, necessitating an increase in volume size. Below are some common scenarios and benefits of resizing EBS volumes:</p><p><strong>i. Application Data Growth</strong></p><p>Modern applications often generate and consume large amounts of data over time. Whether you’re running a database, a file storage service, or a big data application, the need for additional space can arise as:</p><ul><li>Databases grow due to more entries or larger datasets.</li><li>Log files accumulate over time.</li><li>User-uploaded content (e.g., images, videos) expands storage requirements.</li></ul><p>Increasing EBS volume size ensures the application continues to run smoothly without interruptions due to storage limits.</p><p><strong>ii. Scaling Without Downtime</strong></p><p>Traditionally, resizing storage often meant detaching a volume, causing application downtime. AWS EBS eliminates this issue by allowing <strong>online resizing</strong>, where you can modify volume size while the EC2 instance continues to operate. This is especially important for:</p><ul><li>High-availability systems.</li><li>Applications that require 24/7 uptime.</li></ul><p><strong>iii. Flexibility</strong></p><p>AWS allows you to resize EBS volumes without detaching them, ensuring uninterrupted service.</p><p><strong>Prerequisites</strong></p><ol><li><strong>Active AWS Account</strong> with access to EC2 and EBS services.</li><li><strong>Permissions</strong>: Ensure you have IAM permissions for EC2 and EBS modifications.</li></ol><p><strong>We usually follow the below 4 steps:</strong></p><p><strong><em>Step 1:</em></strong><em> Take Snapshot: Although the process is seamless, it’s always best to take a snapshot of the volume as a precaution.</em></p><p><strong><em>Step 2:</em></strong><em> Increase EBS Volume</em></p><p><strong><em>Step 3: </em></strong><em>Extend File System</em></p><p><strong><em>Step 4: </em></strong><em>Delete the EBS snapshot created.</em></p><p>Let’s get started:</p><ol><li><strong>Taking a Snapshot</strong></li></ol><p>It is always advised to take a snapshot of your existing EBS volume in case any data loss occurs.</p><ul><li>Login to your AWS management console and then from the EC2 tab choose the desired instance whose volume you want to increase. Select your instance and click on the storage tab as shown below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WcIgeh1UxfOf9PLMnbB1Sg.jpeg" /></figure><ul><li>Select the volume and click the “Create Snapshot” option to create a snapshot for backup purposes.</li></ul><p><strong><em>Note: This is always recommended, especially while working in a production environment.</em></strong></p><p>we can see below that the current EBS volume size is attached to our EC@ instance is 10GB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pbYRlgFUK5gFbH8soPd_Ew.jpeg" /></figure><ul><li>Give an appropriate name for the snapshot to be created and click on create snapshot option. In my case, the name i have given for snapshot creation is <em>“ebs-snapshot-Demo”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EdwVMQg5BvXsxGXkejgsOg.jpeg" /></figure><ul><li>The snapshot creation will take some time, so wait for it until the snapshot status is “Completed”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CVWrfbRKxsdFhZtkoxgNEQ.jpeg" /></figure><p><strong>2. Increasing EBS Volume</strong></p><ul><li>Select your EBS volume and then click the dropdown of actions at top right corner then choose the “Modify volume” option as shown in the picture below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3V4ZYVCboaMNutV6LR7VcQ.jpeg" /></figure><ul><li>Modify the volume size as per the requirement and use case for your workload Here I am modifying the volume to 20GB from 10GB.</li></ul><p><em>Please note: you cannot decrease the volume size. Only an increase is allowed byAWS.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dvb1-1MVRqLYJbnRBAawEQ.png" /></figure><ul><li>Now login to your instance using either way you prefer easy to use.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SGVwvZcAe4sM7mThYZSUww.jpeg" /></figure><ul><li>After login, run the below command to check the storage size of our machine/disk</li></ul><pre>df -hT</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obEmE5EGBO3gWLlNezbHYQ.jpeg" /></figure><p>We can see that even after modifying the EBS volume from the console, the available size is still not increased to 20 GB. This is why we need to “<strong><em>Expand the File System”</em></strong> before we can use the updated/increased storage.</p><p><strong>3. Extend File System</strong></p><p>Now run the below command to see the list of disks to verify and gather information about the storage devices attached to the EC2 instance and Display a hierarchical view of the disk and its partitions which helps in understanding whether the volume contains a single partition or multiple partitions that might require resizing.</p><pre>sudo lsblk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkXI9bggRbm7HLo9bzIUcQ.jpeg" /></figure><p>Here we can see that the name of our main (first) partition is “xvda1”, so we need to extend it to use the updated storage.</p><ul><li>Now run the below command to grow the partition</li></ul><pre>sudo growpart /dev/xvda 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wPeBWexBvmed6MW946Otg.jpeg" /></figure><p>Here’s an explanation of each component in the command:</p><p><strong>sudo</strong>: Grants administrative (root) privileges needed to modify disk partitions, ensuring the command has the necessary permissions.</p><ol><li><strong>growpart</strong>: A Linux utility that extends a partition to utilize the unallocated space on its parent block device, typically used in cloud environments like AWS.</li><li><strong>/dev/xvda</strong>: Refers to the block device (a virtual disk). In AWS, /dev/xvda is commonly the root volume attached to an EC2 instance.</li><li><strong>1</strong>: Indicates the partition number on the block device. Here, it targets the first partition (/dev/xvda1).</li></ol><ul><li>Now run the resize command below to resize the partition.</li></ul><p>if you have an EXT4 File system, the use</p><pre>sudo resize2fs /dev/xvda1</pre><p>if you have an XFS File system</p><pre>sudo xfs_growfs -d/</pre><ul><li>As we have seen above in the output of “df -hT” command that the file system in out case is “EXT4”, so i am using “sudo resize2fs /dev/xvda1” for resizing as shown below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUeoJlEPkkIgKPx8jzOOjQ.jpeg" /></figure><p>Congrats! our disk size is successfully increased and configured to be used by our application/system.</p><p>Verify using the “lsblk” command, we can see that the disk size has successfully increased to 20G</p><p>The output below clearly shows that the disk size as well as the partition has been successfully updated without any downtime of the system and the applications running over it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGy3Y-WjM4rPVBL_XvFf2w.jpeg" /></figure><p>4. Deletion of Snapshot.</p><p>Finally, make sure to delete the snapshot that we have created for backup/recovery to avoid unnecessary AWS charges as the snapshot will only be used in case any misconfiguration occurs or the disk fails or data is lost. Select you snapshot and then choose the delete option from the dropdown of “Actions” tab.</p><h4>Conclusion</h4><p>By following these steps, you can easily increase the size of your EBS volume without any downtime. This process ensures that your applications remain accessible while you scale your resources dynamically. AWS makes it simple to adapt to growing storage needs, making it a robust choice for businesses of all sizes.</p><p><strong><em>Feel free to share your thoughts or ask questions in the comments below. If you found this blog helpful, don’t forget to like, follow, and share it with others!</em></strong></p><p><strong><em>You can also connect with me on </em></strong><a href="https://www.linkedin.com/in/mohit-bishesh/"><strong><em>LinkedIn</em></strong></a><strong><em> to stay updated and discuss more AWS-related topics.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=536f064f3a52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Host a Static Website on Amazon S3]]></title>
            <link>https://medium.com/@mohitbishesh7/how-to-host-a-static-website-on-amazon-s3-20fa07ccd9e6?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/20fa07ccd9e6</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[static-web-hosting]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 23:44:06 GMT</pubDate>
            <atom:updated>2024-11-10T15:34:50.921Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>Hosting a static website on Amazon S3 is an excellent way to deliver fast and cost-effective web pages with minimal maintenance. Amazon S3 provides scalable storage that’s highly available, making it a great choice for hosting static content like HTML, CSS, and JavaScript files. In this guide, I’ll walk you through the steps of setting up your static website on Amazon S3 using HTML and a CSS stylesheet files.</p><p>Whether you’re setting up a portfolio, business page, or personal website, Amazon S3 offers a great solution with minimal management.</p><ul><li>Link for my static website hosted in below steps: <a href="http://my-s3-portfolio-demo.s3-website-us-east-1.amazonaws.com/">http://my-s3-portfolio-demo.s3-website-us-east-1.amazonaws.com</a></li><li>GitHub link for source code and bucket polices: <a href="https://github.com/MohitBishesh/s3-static-website-hosting">https://github.com/MohitBishesh/s3-static-website-hosting</a></li></ul><p><strong>Prerequisite:</strong></p><p>For hosting a static website on Amazon S3, here are the prerequisites you’ll need:</p><ol><li><strong>AWS Account</strong>: You must have an AWS (Amazon Web Services) account. If you don’t have one, you can sign up at <a href="https://aws.amazon.com/">aws.amazon.com</a>. AWS offers a free tier that covers S3 storage, EC2, Loadbalancers, Virtual Private Cloud, Elastic Block Storage and many other services costs for up to 12 months within certain limits, which is ideal for testing, learnind and small workloads.</li><li><strong>Basic Knowledge of HTML/CSS</strong>: This guide assumes a basic understanding of HTML and CSS to create and edit static web pages. Familiarity with file structure and linking stylesheets will be helpful.</li><li><strong>AWS IAM User (Optional but Recommended)</strong>: For security, it’s best to create an IAM user with permissions to manage S3 rather than using root credentials. Ensure this user has permissions for S3 management.</li><li><strong>Billing and Cost Awareness</strong>: Though S3 offers low-cost storage, there may still be minor costs associated with hosting depending on the volume of traffic and storage size. Understanding S3 pricing will help avoid unexpected charges as your site grows.</li><li><strong>Domain Name (Optional)</strong>: If you want a custom domain for your website, you’ll need to purchase one and configure it to point to your S3 bucket (Amazon Route 53 is commonly used, but external registrars work too).</li></ol><p>Let’s Dive into the steps now:</p><p><strong>Step 1:</strong> Login to your AWS Management console and then choose the preferred region considering the closest region of you target audience (to reduce the latency) from the dropdown as shown below. In this tutorial I am going to use <strong><em>us-east-1</em></strong> as my <strong><em>region.</em></strong></p><p><strong>Please Note:</strong> Amazon S3 is indeed a global service, but its infrastructure is organized across multiple regions. When you create a bucket, you select a specific region, and your data is stored within that region’s data centers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FaBe7xmgy3OaeBABjj1aw.png" /></figure><p><strong>Step 2:</strong> Go to the search tab and then type S3 and then choose the service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkTAsOpWhmXyhR3MIwX7Hg.png" /></figure><p><strong>Step 3:</strong> Once you land onto the S3 page, choose the option to create a bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_3CwdVQVOauCrv8CbnsFQ.png" /></figure><p><strong>Step 4:</strong> Give a name for you bucket you want to create. Please note, since s3 is a global service so we need to choose a globally unique name for our bucket, i.e there should be no bucket alreadycreated by anyone across the globe with the name you want to create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKia4T8ed3iVCeV5eSIUtg.jpeg" /></figure><p><strong>Step 5:</strong> Here I entered the bucket name as “demo”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EnFaJ6acRAOUj2DSb5J1Q.png" /></figure><p><strong>Step 6:</strong> Under the section of “<strong><em>Block Public Access settings for this bucket”</em>, </strong>uncheck the option of <strong><em>“Block all public access” </em></strong>as we want our static website to be accessed by anyone across the globe.</p><p><em>(To control the acccessibility of website, we can enable ACLs)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMyNVeRy74uy0VwsSRcEjw.png" /></figure><p><strong>Step 7:</strong> Check the acknowledgement to make you bucket public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSFALn-FuJOEdriNUg078w.png" /></figure><p><strong>Step 8:</strong> Choose the option to create bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*asoqXm5ZQWi1G4Gllabdug.png" /></figure><p><strong>Step 9:</strong> Since the name which we choose for our s3 bucket was not globally unique so we got the error as <strong><em>“Bucket with same name already exists.”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wftvJPwOAL5SnRlcfRNgeA.png" /></figure><p>So now we choose some different name for our bucket<strong><em> (my-s3-portfolio-demo)</em></strong> so that it will be globally unique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2udJR_OrG34Grv70T0QVw.png" /></figure><p>Our S3 bucket is successfully created as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AP8U96RXff2UQve1AgLWlg.png" /></figure><p><strong>Step 10:</strong> Choose the bucket and click on Permission tab. Scroll down to the Bucket Policy section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JlGfzcDlS8xybyIl_4M_Q.png" /></figure><p><strong>Step 11:</strong> Click on edit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qB3bg0ZodrRuQTHNeAFNSQ.png" /></figure><p><strong>Step 12:</strong> Update the bucket policy as below. Remember to update you bucket name in bucket policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unKCCMob1XoU87qumLJTdA.png" /></figure><p><strong>Step 13:</strong> Now go back to the objects tab and click on upload to upload the required files for our website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_bTPe2vhNmivQajDgimbA.png" /></figure><p><strong>Step 14: </strong>Click on add files option to upload all your file required for hosting static website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67nfszOLYOmYX5XVXiWyPg.png" /></figure><p><strong>Step 15:</strong> Choose the necessary files from your local and upload them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_yJIKPjBV83myG0j-j75Q.png" /></figure><p>Here the files has been added to the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ulZotu3PxZD7DM0lvrcYfQ.png" /></figure><p><strong>Step 16: </strong>Click on upload to uplod all you files to the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2sCpYDzNFw0Qv7bQK9MZ-Q.png" /></figure><p>We can see, the files had been successfully uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kslqb2Jnvlv15RGYdv-i5A.png" /></figure><p><strong>Step 17: </strong>Now choose your bucket, and click on “Properties” tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7o4d4xE4qPjI1avl0T28FQ.png" /></figure><p><strong>Step 18:</strong> Under properties tab, scroll down to the <strong><em>“Static website hosting”</em></strong> section and click on edit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPm5lePMQLWEpb0wuC41fg.png" /></figure><p><strong>Step 19:</strong> Enable the static website hosting option, then add the name of file which you uploaded in S3 bucket in above step. Here, in my case the default page is <strong><em>index.html </em></strong>and error page is <strong><em>error.html.</em></strong></p><p><strong>Note:</strong> Avoid giving another name to you default page as sometimes you may face issue in loading the website if default page is other than <strong><em>index.html.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*reHwXJBzRtHASX4wRzf4Pw.png" /></figure><p><strong>Step 20:</strong> Click on save changes and then copy the <strong><em>“Bucket website endpoint”, </em></strong>which is the endpoint to access out website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*At2oio6dRw634-LSxaSoVA.png" /></figure><p><strong>Step 21:</strong> Paste the link on you browser and access your website.</p><p><strong>Here is home page:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMpNGb-ODqZstDtMoBQlgA.png" /></figure><p><strong>Here is About page:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFR2SD74HGacH0HiAX0TcA.png" /></figure><p><strong>Here is the contact page:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W5XOuQZrgfHxe1ExqzSc-w.png" /></figure><p><strong>And here is the error page:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDqfefUgoysnUHrzOTpw5A.png" /></figure><p>Congratulations you have been successfully hosted you static website using AWS S3. To give a custom domain to your website, you can use the AWS servie: Route 53.</p><p>NOTE: If you are not using the website, then don’t forget to delete you S3 bucket to avoid any unwanted AWS charges.</p><h3>Conclusion</h3><p>Amazon S3 simplifies static website hosting by offering a scalable, serverless solution. With just a few clicks, you can deploy your site and make it accessible to the world. Plus, by using a custom domain and integrating with Amazon CloudFront, you can further improve performance and security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20fa07ccd9e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enabling ArgoCd web shell: to exec inside pods over AWS Elastic Kubernetes Service]]></title>
            <link>https://medium.com/@mohitbishesh7/enabling-argocd-web-shell-to-exec-inside-pods-over-aws-elastic-kubernetes-service-5b0f03c4b7c2?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b0f03c4b7c2</guid>
            <category><![CDATA[rbac-access-control]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[webshell]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 06:01:42 GMT</pubDate>
            <atom:updated>2024-09-24T06:01:42.243Z</atom:updated>
            <content:encoded><![CDATA[<p>ArgoCD is a declarative, GitOps, continuous delivery tool for Kubernetes which helps in the easy deployment of applications over Kubernetes and maintaining the state of manifest over the remote repository like GitHub, bitbucket, etc with the resources over the Kubernetes cluster.</p><p><strong>Problem Statement:</strong></p><p>When working in a development, testing, or QA environment the developers need access to the pod’s terminal to debug and test certain functionalities. In that situation, giving direct access to the Kubernetes cluster is not a good practice and may lead to inconsistency when multiple developers are working together. Moreover, it will also be against the principles of least privileges.</p><p>So in that situation, enabling ArgoCd web shell is the best choice which enables the feature to exec inside the pod/container using argocd GUI itself and execute the commands over it.</p><p>Argo CD has a web-based terminal that allows you to get a shell inside a running pod just like you would with Kubectl exec. It basically SSH from your browser, with full ANSI color support, and all!</p><p>However, for security, this feature is disabled by default.</p><p>This is a powerful privilege. It allows the user to run arbitrary code on any Pod managed by an Application for which they have the exec/create privilege through the RBAC assigned.</p><p>For more details about RBAC and creating users in ArgoCd, you can refer here.</p><p><a href="https://medium.com/@mohitbishesh7/create-users-in-argocd-and-assigning-rbac-role-based-access-control-45721183a360">Create ArgoCD Users &amp; Assigning RBAC: Role Based Access Control over AWS EKS Cluster.</a></p><p><strong>Prerequisite:</strong></p><ul><li>argocd installed.</li><li>argocd v2.4 or v2.4+</li><li>image used to create the pods should have a terminal enabled.</li></ul><p>ArgoCD supports the following shells and by default attempts in the following order:</p><ol><li>bash</li><li>sh</li><li>PowerShell</li><li>cmd</li></ol><p>Let’s deep dive into the steps to enable web shell.</p><ol><li>login to your Kubernetes cluster and get the configmaps of ArgoCd under the argocd namespace</li></ol><pre>kubectl get cm -n=argocd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZvNCBptk3sf8EXBB1oTmbg.jpeg" /></figure><p>2. Get the argocd-cm and update the configurations to enable the exec functionality.</p><pre>kubectl get cm argocd-cm -n=argocd -o yaml | code -</pre><p>Use the above command to directly open the configuration file under your IDE (eg Visual Studio code ) else use below command:</p><pre>kubectl get cm argocd -n=argocd -o yaml &gt; file1.yaml</pre><p>above will store the configuration of argocd cm under the file1.yaml and then update it.</p><p>3. Now we will update the data block of our configmap “argocd-cm” as below to enable the shell</p><pre>data:<br> exec.enabled: &quot;true&quot;<br> exec.shells: bash,sh</pre><p>Here I have added the shells as bash, sh. But, we can add other shells as per our requirement and the one present in our image used to create the pods.</p><p>please note, that ArgoCd checks the availability of shells inside the pod in the order which is specified here, and if it gets any one of them it will be used when we try to exec through the ArgoCd UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJyjWpb7kNepsMp8-P0U2Q.jpeg" /></figure><p>Note:</p><p>Here I have added</p><pre>accounts.admin: login<br>accounts.peter: login<br>accounts.marry: login</pre><p>as I am creating 2 user accounts (peter and marry) as well, there is no need to add it if you want to enable exec only for admin.</p><p>4. Now save and apply the above file to the Kubernetes cluster.</p><pre>kubectl apply -f file1.yaml</pre><p>5. Now get the roles under the namespace of argocd</p><pre>kubectl get role -n=argocd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsU4LJ8PIpxdTiEv36Ye1A.jpeg" /></figure><p>6. We need to update the “argocd-server” to update the resource block to update the rules for the user.</p><pre>kubectl get role argocd-server -n=argocd -o yaml | code -</pre><p>We will add a rule as below where we are specifying the pods resource to be exec:</p><pre>- apiGroups:<br> - &quot;&quot;<br> resources:<br> - pods/exec<br> verbs:<br> - create</pre><p>Refer to the image as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zs-6cFwtodW1RcqiUTqDLA.jpeg" /></figure><p>Apply the above file to the Kubernetes cluster.</p><p>7: Now update the cluster role of ArgoCd</p><p>many times the previous step is only sufficient but it’s recommended to update the cluster role as well to avoid any issues.</p><p>7.1 Get the cluster roles using the command below.</p><pre>kubectl get clusterroles</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JQpveZDvf6WfGI2i6GAbPg.jpeg" /></figure><p>8. We need to update the “argocd-server” cluster role.</p><p>update the role to add a rule as below</p><pre>- apiGroups:<br> - &quot;&quot;<br> resources:<br> - pods/exec<br> verbs:<br> - create</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXFn9r2YzD64oMFK_0TWuw.jpeg" /></figure><p>9. Apply the changes to the Kubernetes cluster.</p><p>10: Finally we are good to go! Log in to argocd server using admin credentials or you can also login using the other user account (if followed step 4)</p><p>Now you can see an Exec option for your pod.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_swyvNxcQHLlCAA9jAvMg.jpeg" /></figure><p>Now, you will get an option of the terminal and can run the shell commands to interact with your container for debugging or testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MSE3bWoUaLbFcw6wL-o9IQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b0f03c4b7c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create ArgoCD Users & Assigning RBAC: Role Based Access Control over AWS EKS Cluster.]]></title>
            <link>https://medium.com/@mohitbishesh7/create-users-in-argocd-and-assigning-rbac-role-based-access-control-45721183a360?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/45721183a360</guid>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[gitops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[rbac-access-control]]></category>
            <category><![CDATA[kubernetes-rbac]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Tue, 03 Sep 2024 18:17:18 GMT</pubDate>
            <atom:updated>2024-09-21T20:18:07.640Z</atom:updated>
            <content:encoded><![CDATA[<p>ArgoCD is a declarative, GitOps continuous delivery tool for Kubernetes.</p><p>Creating different users in ArgoCD provides several advantages for managing access and maintaining security within the GitOps environment and helps to implement the principle of least privileges. The other benefits of creating users and implementing Role Based Access Control (RBAC) are:</p><ol><li><strong>Access Control:</strong> Different users can be assigned distinct roles and permissions based on their responsibilities. This allows for fine-grained access control, ensuring that individuals have the necessary privileges without unnecessary permissions.</li><li><strong>Security:</strong> RBAC mechanisms in ArgoCD help enforce the principle of least privilege. Users only get access to the resources and actions they need, reducing the risk of accidental or intentional harm.</li><li><strong>Auditability:</strong> Individual user actions are logged and auditable. This ensures accountability and provides a traceable history of who made changes, what changes were made, and when they occurred. This audit trail is crucial for compliance, debugging, and incident response.</li><li><strong>Isolation:</strong> Different teams or projects can have isolated environments and applications within ArgoCD. This isolation ensures that changes made by one team do not impact others, promoting a modular and secure approach to GitOps.</li><li><strong>Collaboration:</strong> User accounts allow for collaboration among team members while maintaining proper access controls. Teams can work on different aspects of the deployment independently, contributing to a more efficient and collaborative development process.</li></ol><p>We can create different users in ArgoCd and can define roles for the user to access the application.</p><p><strong>Prerequisite:</strong></p><ol><li>You have an EKS cluster setup</li><li>ArgoCd is already installed</li><li>You have your admin credentials for ArgoCd</li></ol><p><strong>Let us proceed:</strong></p><ol><li>First, log in to the EKS cluster and search for the config map under the namespace “ArgoCd “.</li></ol><pre>kubectl get cm -n=argocd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qsUr2MjpKgyDqON-VWnMTQ.jpeg" /></figure><p>We will get a list of config maps in ArgoCd namespace, but we are concerned with argocd-cm and argocd-rbac-cm.</p><p>2. Extract and save the content of the “argocd-cm” in a file so that we can edit it properly in a text editor of your choice.</p><pre>kubectl get cm argocd-cm -n=argocd -o yaml &gt; argocd-cm.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2GKSxe7Wr0JogzWOxKLCqg.jpeg" /></figure><p>Here, I am storing the config map content in a file as argocd-cm.yaml</p><p>3. Similarly, extract and save the content of the “argocd-rbac-cm file”</p><pre>kubectl get cm argocd-rbac-cm -n=argocd -o yaml &gt; argocd-rbac-cm.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuydIQXIlTW0IMCxC4PuCQ.jpeg" /></figure><p>Here, I am storing the content of argocd-rbac-cm configmap in a file as argocd-rbac-cm.yaml.</p><p>In our command, “-n=argocd” specifies the namespace of our argocd, whereas argocd-cm.yaml and argocd-rbac-cm.yaml are the file that will store the yaml output of configuration files i.e argocd-cm and argocd-rbac-cm respectively.</p><p>4. Specify the name of the account/user you want to create, under data block of “argocd-cm.yaml” file and allow it for login.</p><pre>data:<br>  accounts.john: login</pre><p>Here the name of the account/user that we want to create is “john” which will have the login permission.</p><p><strong>My current argocd-cm.yaml file is as follows:</strong></p><pre>apiVersion: v1<br>data:<br>  accounts.john: login<br>  accounts.peter: login<br>  accounts.marry: login<br>  exec.enabled: &quot;true&quot;<br>kind: ConfigMap<br>metadata:<br>  labels:<br>    app.kubernetes.io/name: argocd-cm<br>    app.kubernetes.io/part-of: argocd<br>  name: argocd-cm<br>  namespace: argocd</pre><p><strong>NOTE:</strong></p><ol><li>This configuration has been only provided for your reference and your file will be different, just make sure to update the data block.</li><li>Here I have shown how you can create multiple users by just adding accounts.&lt;user&gt; under the data block.</li><li>Here, the users are john, peter, marry, are the multiple users with login permission</li><li>Now we will update the data block of argocd-rbac-cm.yaml file to add the policies and permissions to our users.</li></ol><pre>data:<br>  policy.csv: |<br>    p, role:readonly-user, applications, get, default/myapp-*, allow<br>    p, role:readonly-user, applications, sync, default/myapp-*, allow<br>    p, role:readonly-use, applications, action/apps/Deployment/restart, default/myapp-*, allow<br>    p, role:readonly-user, exec, create, default/myapp-*, allow<br>    g, peter, role:readonly-user</pre><p>Here,</p><ul><li><strong>p:</strong> signifies the policy</li><li><strong>role: readonly-user </strong>signifies that the name of our role is “readonly-user”, we can give it any name as per our wish as it’s just the name that we are giving to our policy.</li><li><strong>application:</strong> signifies that the role is at the application level</li><li><strong>get: </strong>signifies that the user should have permission to see the apps under argocd UI.</li><li><strong>sync</strong>: signifies that the user should have permission to sync the apps under argocd UI.</li><li><strong>default:</strong> it is the name of our project in argocd.</li><li><strong>myapp-*:</strong> it is the regex which signifies that all those applications whose names start with “myapp-”</li><li><strong>action/apps/Deployment/restart:</strong> it gives the permission to restart the deployment to the user.</li><li><strong>allow:</strong> allowing the permissions</li></ul><pre>g, peter, role:readonly-user</pre><p>Here,</p><p><strong>g: </strong>signifies the grouping of the policies, whose role name is “readonly-user” and assigning those roles/policies to the user named “peter”</p><p>So, with the above configuration our user “peter” will have permission of view(get) the applications, sync the applications, restart the deployments, and exec i.e login to the terminal of the pod (if enabled exec) for all the applications whose name starts with “myapp-”</p><p>For your better understanding, my configuration file for argocd-rbac-cm.yaml is as below:</p><p>(only for your reference, apart from data block the rest of the part may change)</p><pre>apiVersion: v1<br>data:<br>  policy.csv: |<br>    p, role:readonly-user, applications, get, default/myapp-*, allow<br>    p, role:readonly-user, applications, sync, default/myapp-*, allow<br>    p, role:readonly-user, applications, action/apps/Deployment/restart, default/myapp-*, allow<br>    p, role:readonly-user, exec, create, default/myapp-*, allow<br>    g, peter, role:readonly-user<br>    g, marry, role:readonly-user<br>kind: ConfigMap<br>metadata:<br>  labels:<br>    app.kubernetes.io/name: argocd-rbac-cm<br>    app.kubernetes.io/part-of: argocd<br>  name: argocd-rbac-cm<br>  namespace: argocd</pre><p>6. Apply both of your config map in the eks cluster to update the changes.</p><ul><li><strong>command 1:</strong></li></ul><pre>kubectl apply -f argocd-cm.yaml</pre><ul><li><strong>command 2:</strong></li></ul><pre>kubectl apply -f argocd-rbac-cm.yaml</pre><p><strong>Creating a password for the user:</strong><br>Till now we have created our users, but we also need to create the password for all so that they can login independently and perform the actions.</p><p>7. Login to your argocd using EKS cluster using your argocd endpoint and password.</p><pre>argocd login argocd.xyz.com:443 - username admin - password test@123</pre><p><strong>Note:</strong> if got error “FATA[0060] context deadline exceeded”</p><p>use:</p><pre>argocd login argocd.xyz.com:443 - skip-test-tls - grpc-web - username admin - password test@123</pre><p>Here,</p><ul><li><strong>argocd.xyz.com:443</strong> is my login URL and you should replace it with your actual URL</li><li><strong>test@123<em> </em></strong>is my admin-password of argocd admin user</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dEKTLNfI0Hygydmaj93DhQ.jpeg" /></figure><p>8. See the list of the account created by you using the below command.</p><p>(<em>for security constraints, I have blurred my argocd endpoint and user names.)</em></p><pre>argocd account list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omSRPrdvJNEdcgeGTCqRhQ.jpeg" /></figure><p>9. Now we will update the password for our user “peter”.</p><pre>argocd account update-password - account peter - new-password test@1#</pre><p>The password for our account peter is ‘test@1#’ which we will use for login into argocd ui.</p><p>10. After executing the above command, you will get a prompt to enter the admin account password of argocd, just to ensure that the changes are to be confirmed. once we enter the admin account password, we will get a prompt as <strong>“account updated”.</strong></p><p>11. Finally we are ready to go, we can login to our using the new account created which will have only those permissions which was provided by us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfuIQaQrdPGPMrf7iQ2PQg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45721183a360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Certified Kubernetes Administrator Exam: Important Kubectl commands over AWS Elastic…]]></title>
            <link>https://medium.com/@mohitbishesh7/amazon-elastic-kubernetes-service-basic-kubectl-commands-89dcd9aa1992?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/89dcd9aa1992</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[elastickubernetesservice]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 22:11:51 GMT</pubDate>
            <atom:updated>2024-09-21T20:21:30.558Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Certified Kubernetes Administrator Exam: Important Kubectl commands over AWS Elastic Kubernetes Service</h3><p><strong>What is Kubernetes?</strong></p><p>Kubernetes, often abbreviated as K8s, is an open-source container orchestration platform designed to automate the process of deployment, scaling, and management of containerized applications. Developed by Google and later donated to the Cloud Native Computing Foundation (CNCF), Kubernetes provides a robust and extensible framework for managing containerized workloads and services.</p><p>Some of the features of using Kubernetes are:</p><ul><li>Auto-healing</li><li>Auto scaling</li><li>reliable container restart</li><li>Managed Kubernetes Control Plane</li><li>Integration with AWS Services</li><li>Security and Compliance</li></ul><p><strong>some of the use cases of K8s are:</strong></p><ul><li>Microservices Architecture</li><li>Continuous Integration/Continuous Deployment (CI/CD)</li><li>Scaling and Load Balancing</li><li>Service Discovery</li><li>Automated Rollouts and Rollbacks</li></ul><p><strong>What is Amazon EKS?</strong></p><p>Amazon Elastic Kubernetes Service (EKS) is a fully managed Kubernetes service provided by Amazon Web Services (AWS). It simplifies the deployment, management, and scaling of containerized applications using Kubernetes on AWS infrastructure. EKS eliminates the need for organizations to manage the complexities of Kubernetes clusters, allowing them to focus on building and scaling applications.</p><p>Let’s have a look upon some of the basic commands related to Kubernetes:</p><p><strong>#Some basic commands are as follows:</strong></p><ol><li><strong>To see the list of all resources</strong></li></ol><p><em>kubectl get all -o wide</em></p><p><strong>2. To see the list of all namespaces</strong></p><p><em>kubectl get pods — all-namespaces -o wide</em></p><p><strong>3. To see the list of all pods within a namespace</strong></p><p><em>kubectl get pods — namespace=&lt;namespace&gt; -o wide</em></p><p><strong>4. To see the list of all deployments within a namespace</strong></p><p>kubectl get deployment — namespce=&lt;namespace&gt;</p><p><strong>5. To get the list of all services within a namespace</strong></p><p><em>kubectl get svc -n &lt;namespace&gt; -o wide</em></p><p><strong>#Some context and configuration related commands:</strong></p><ol><li><strong>view Current Context</strong></li></ol><p><em>kubectl config current-context</em></p><p><strong>2. List All Contexts</strong></p><p><em>kubectl config get-contexts</em></p><p><strong>3. Switch Context</strong></p><p><em>kubectl config use-context &lt;context_name&gt;</em></p><p><strong>4. View Configuration File Path</strong></p><p><em>kubectl config view — minify — output ‘jsonpath={.files[0].name}’</em></p><p><strong>5. Set Cluster Configuration</strong></p><p><em>kubectl config set-cluster &lt;cluster_name&gt; — server=&lt;server_url&gt; — certificate-authority=&lt;ca_path&gt;</em></p><p><strong>6. Set User Configuration</strong></p><p><em>kubectl config set-user &lt;user_name&gt; — client-certificate=&lt;cert_path&gt; — client-key=&lt;key_path&gt;</em></p><p><strong>7. Set Context Configuration</strong></p><p><em>kubectl config set-context &lt;context_name&gt; — cluster=&lt;cluster_name&gt; — user=&lt;user_name&gt; — namespace=&lt;namespace_name&gt;</em></p><p><strong>8. Create a New Context</strong></p><p><em>kubectl config set-context &lt;context_name&gt; — cluster=&lt;cluster_name&gt; — user=&lt;user_name&gt; — namespace=&lt;namespace_name&gt;</em></p><p><strong>9. Rename a Context</strong></p><p><em>kubectl config rename-context &lt;old_context_name&gt; &lt;new_context_name&gt;</em></p><p><strong>10. Delete a Context</strong></p><p><em>kubectl config delete-context &lt;context_name&gt;</em></p><p><strong>11. Set Default Namespace for a Context</strong></p><p><em>kubectl config set-context — current — namespace=&lt;namespace_name&gt;</em></p><p><strong>12. View Configuration in YAML Format</strong></p><p><em>kubectl config view</em></p><p><strong>13. Set Context as Default</strong></p><p><em>kubectl config use-context &lt;context_name&gt; — current</em></p><p><strong>14. Get Namespaces in Current Context</strong></p><p><em>kubectl config get-contexts $(kubectl config current-context) — output ‘jsonpath={.context.namespace}’</em></p><p><strong>15. Get Namespaces in Current Context</strong></p><p><em>kubectl get nodes -o wide</em></p><p><strong>#Some logs related commands:</strong></p><ol><li><strong>Get Logs from a Pod</strong></li></ol><p><em>kubectl logs &lt;pod_name&gt;</em></p><p><strong>2. Get Logs from a Pod with Timestamps</strong></p><p><em>kubectl logs &lt;pod_name&gt; — timestamps</em></p><p><strong>3. Get Logs from the Last N Lines</strong></p><p><em>kubectl logs &lt;pod_name&gt; — tail=&lt;num_lines&gt;</em></p><p><strong>4. Stream Logs from a Pod in Real-time</strong></p><p><em>kubectl logs -f &lt;pod_name&gt;</em></p><p><strong>5. Get Logs from Multiple Containers in a Pod</strong></p><p><em>kubectl logs &lt;pod_name&gt; -c &lt;container_name&gt;</em></p><h4><strong>#Some scaling related commands:</strong></h4><ol><li><strong>Scale a Deployment</strong></li></ol><p><em>kubectl scale deployment &lt;deployment_name&gt; — replicas=&lt;number_of_replicas&gt;</em></p><p><strong>2. Scale a StatefulSet</strong></p><p><em>kubectl scale statefulset &lt;statefulset_name&gt; — replicas=&lt;number_of_replicas&gt;</em></p><p><strong>3. Scale a ReplicaSet:</strong></p><p><em>kubectl scale replicaset &lt;replicaset_name&gt; — replicas=&lt;number_of_replicas&gt;</em></p><p><strong>4. Autoscale a Deployment based on CPU Usage</strong></p><p><em>kubectl autoscale deployment &lt;deployment_name&gt; — cpu-percent=&lt;cpu_percentage&gt; — min=&lt;min_replicas&gt; — max=&lt;max_replicas&gt;</em></p><p><strong>5. Update the Image of a Deployment and Scale</strong></p><p><em>kubectl set image deployment/&lt;deployment_name&gt; &lt;container_name&gt;=&lt;new_image&gt;:&lt;tag&gt; — record</em></p><p><strong>6. Rolling Restart of Deployments</strong></p><p><em>kubectl rollout restart deployment &lt;deployment_name&gt;</em></p><p><strong>7. Rollback a Deployment to a Previous Revision</strong></p><p><em>kubectl rollout undo deployment &lt;deployment_name&gt;</em></p><p><strong>#Some monitoring related commands:</strong></p><ol><li><strong>View Cluster Events</strong></li></ol><p><em>kubectl get events -o wide</em></p><p><strong>2. View Resource Utilization for Nodes</strong></p><p><em>kubectl top nodes</em></p><p><strong>3. View Resource Utilization for Pods</strong></p><p><em>kubectl top pods</em></p><p><strong>4. View Resource Utilization for a Specific Pod</strong></p><p><em>kubectl top pod &lt;pod_name&gt;</em></p><p><strong>5. View Resource Utilization for All Containers in a Pod</strong></p><p><em>kubectl top pod &lt;pod_name&gt; — containers</em></p><p><strong>6. Create a Horizontal Pod Autoscaler (HPA)</strong></p><p><em>kubectl autoscale deployment &lt;deployment_name&gt; — cpu-percent=&lt;cpu_percentage&gt; — min=&lt;min_replicas&gt; — max=&lt;max_replicas&gt;</em></p><p><strong>7. View HPA Information</strong></p><p><em>kubectl get hpa</em></p><p><strong>8. View Persistent Volume Metrics from Metrics Server (if installed)</strong></p><p><em>kubectl top pv</em></p><p><strong>9. View Persistent Volume Claim Metrics from Metrics Server (if installed)</strong></p><p><em>kubectl top pvc</em></p><p><strong>10. View Grafana Dashboards (if Grafana is used)</strong></p><p><em>kubectl port-forward -n monitoring service/grafana 3000:3000</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89dcd9aa1992" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Horizon in OpenStack.]]></title>
            <link>https://medium.com/@mohitbishesh7/understanding-horizon-in-openstack-b421ac94ce73?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b421ac94ce73</guid>
            <category><![CDATA[horizons]]></category>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[private-cloud]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 20:00:48 GMT</pubDate>
            <atom:updated>2023-09-10T20:00:48.389Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Horizon Dashboard</strong></p><p><strong>What is Horizon in OpenStack?</strong></p><p>OpenStack Horizon is the web-based dashboard for OpenStack. It provides a graphical user interface for administrators and users to manage the various services and resources within an OpenStack cloud environment. Horizon allows users to create, manage, and monitor instances, networks, volumes, images, and other resources within an OpenStack cloud. Additionally, Horizon provides a graphical interface for configuring and managing identity and access control, as well as billing and metering services. By providing a single, unified interface, Horizon makes it easier for users to interact with an OpenStack cloud and manage its resources.</p><p><strong>Important elements of OpenStack:</strong></p><p>OpenStack Horizon is made up of several important components, each of which plays a critical role in providing a user-friendly interface for managing an OpenStack cloud. Some of the key components of Horizon include:</p><p>· <strong>Dashboards</strong>: The main interface for Horizon, the dashboards provide an overview of the resources and services available within an OpenStack cloud.</p><p>· <strong>Panels</strong>: Panels are the individual components that make up the dashboards. Each panel provides information and controls for a specific aspect of OpenStack, such as instances, networks, or images.</p><p>· <strong>Plugins</strong>: Horizon supports a plugin architecture that allows developers to extend the functionality of the dashboard by adding new panels and dashboards.</p><p>· <strong>API</strong>: Horizon uses the OpenStack API to interact with the various OpenStack services and retrieve information about resources.</p><p>· <strong>Theme</strong> Engine: Horizon provides a customizable theme engine that allows administrators to change the look and feel of the dashboard to match their organization’s branding.</p><p><strong>Admin Tab in OpenStack Horizon</strong></p><p>The Admin tab in Horizon is a section of the OpenStack Dashboard that is specifically designed for administrators to manage the cloud environment. The Admin tab provides access to various administrative tasks and functions, such as managing users, projects, and quotas, managing images and flavors, managing networks and security groups, and managing storage volumes and snapshots.</p><p>In addition, the Admin tab also provides access to system-level information, such as usage and performance statistics, system logs, and configuration settings. The Admin tab is an important component of Horizon, as it provides administrators with a centralized location for managing and monitoring the OpenStack environment.</p><p>It is worth noting that access to the Admin tab is restricted to users with administrative privileges, and that the exact features and functions available in the Admin tab can vary depending on the specific implementation of OpenStack.</p><p><strong>Project tab in Horizon</strong></p><p>The Project tab in Horizon is a section of the OpenStack Dashboard that provides users with a view of the resources associated with their project. The Project tab provides a centralized location for users to manage and monitor their cloud resources, such as instances, networks, volumes, and images.</p><p>In the Project tab, users can perform tasks such as launching new instances, creating and managing networks, creating and attaching storage volumes, and creating and managing images. The Project tab also provides users with an overview of their resource usage, including information on resource utilization, billing, and quotas.</p><p>The Project tab is designed to be user-friendly and intuitive, allowing users to easily access and manage their cloud resources. The exact features and functionality available in the Project tab can vary depending on the specific implementation of OpenStack, but generally, it provides users with the tools they need to effectively utilize their cloud resources.</p><p><strong>The Identity tab in Horizon</strong></p><p>The Identity tab in Horizon is a section of the OpenStack Dashboard that provides administrators with the tools to manage users, projects, and roles in the OpenStack environment. This tab is where administrators can manage the users and projects associated with the OpenStack environment, including creating new users and projects, editing user and project information, and managing user roles and permissions.</p><p>The Identity tab integrates with the OpenStack Identity service (Keystone), which provides user authentication and authorization services. This allows administrators to manage the authentication and authorization of users in a centralized location, making it easier to manage access to OpenStack resources.</p><p>In addition to managing users and projects, the Identity tab also provides administrators with the ability to manage roles and permissions. Roles define the capabilities of users within a project, and administrators can create custom roles and assign them to users to fine-tune access to resources.</p><p>The Identity tab is an important component of Horizon, as it provides administrators with a centralized location for managing user authentication, authorization, and access to OpenStack resources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b421ac94ce73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding OpenStack, it’s components, features, and advantages.]]></title>
            <link>https://medium.com/@mohitbishesh7/understanding-openstack-its-components-features-and-advantages-67c7ce9d989e?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/67c7ce9d989e</guid>
            <category><![CDATA[cinder]]></category>
            <category><![CDATA[private-cloud]]></category>
            <category><![CDATA[nova]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[openstack]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 19:56:35 GMT</pubDate>
            <atom:updated>2023-09-10T19:56:35.461Z</atom:updated>
            <content:encoded><![CDATA[<p>OpenStack is a free open standard distributed computing stage that is generally sent as IaaS in both public and confidential cloud where virtual servers and different assets are made accessible to clients. OpenStack pools, arrangements, and deals with the figure, stockpiling, and organization assets. It has a few programming parts called a venture, which are chosen to work out the arrangement and elements of an undertaking cloud.</p><p>The OpenStack platform is not an application in and of itself, but rather a platform made up of a number of parts known as projects. These projects communicate with one another via a specific programming interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*AS3tDwsmHKHt3gbmTfUWPg.png" /><figcaption><a href="https://www.google.com/imgres?imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2Fe%2Fe6%2FOpenStack%25C2%25AE_Logo_2016.svg%2F1200px-OpenStack%25C2%25AE_Logo_2016.svg.png&amp;imgrefurl=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FOpenStack&amp;tbnid=K_IH0bGXzWxR2M&amp;vet=12ahUKEwj89Z372Oz8AhXnjNgFHWsEBo8QMygAegUIARDeAQ..i&amp;docid=LIA79yXhunWJ4M&amp;w=1200&amp;h=580&amp;q=openstack&amp;ved=2ahUKEwj89Z372Oz8AhXnjNgFHWsEBo8QMygAegUIARDeAQ">Image1.</a></figcaption></figure><p>The OpenStack platform is not an application in and of itself; rather, it is a collection of different components known as projects that connect with one another via a distinct programming interface. Img. Src A base operating system like Linux and a virtualization platform like VMware serve as the foundation for the open stack architecture. Once the required open stack components and operating system virtualization platform have been properly deployed and configured, the administrator can assign and provide the program with the resources it needs to run.</p><p><strong>Some of the important features of OpenStack are:</strong></p><ol><li>Compute</li><li>VM images</li><li>Networking</li><li>Storage</li><li>Identity Management</li><li>Resource Management</li></ol><p><strong>Benefits of OpenStack are:</strong></p><ol><li>“Affordability: It is very economical because the Apache 2.0 license permits free use of it.</li><li>Reliability: offers very high levels of security and no breakdowns. Thus, it is quite trustworthy.</li><li>No vendor locking: it attracts the customers towards itself and it’s not very complex for a customer to shift to another vendor from OpenStack.</li><li>Supports orchestration: It helps to automate the tasks and users do not need to manage the operational tasks or look for infrastructure or security.</li><li>Fault management: In case of any fault, it automatically manages the fault that occurred and the services.”</li></ol><p><strong>The user manages it with 3 major interfaces:</strong></p><ol><li>Web-based dashboard</li><li>Command-line tools</li><li>RESTful web services</li></ol><p><strong>Some of the drawbacks of OpenStack are:</strong></p><ol><li>Complexity: Effective use of OpenStack demands some IT employees with in-depth familiarity with the platform’s features and services.</li><li>Support: It is completely dependent on the open-source community and is not owned by any specific team or provider.</li><li>Consistency: The services are constantly in flux because new parts are constantly being added and deprecated. Some of the most important components of OpenStack are:</li></ol><ul><li>Compute (Nova) Networking (Neutron)</li><li>Image (Glance)</li><li>Object Storage (Swift)</li><li>Dashboard (Horizon)</li><li>Block Storage (Cinder)</li><li>Orchestration (Heat)</li><li>Identity (Keystone)</li><li>Database (Trove)</li><li>Elastic Map Reduce (Sahara)</li></ul><p>Let us have a few discussions on different components of OpenStack one by one:</p><ol><li><strong>Compute (Nova)</strong></li></ol><p>It is an OpenStack object that provides us with compute instances and resources. It generates virtual machines, bare metal servers, and machine images. Python is used to write Nova. Nova is both highly and horizontally scalable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*igLGAn-C0JbEVR0x1DsHuQ.png" /><figcaption><a href="https://www.google.com/imgres?imgurl=https%3A%2F%2Fblog.yarwood.me.uk%2Fimg%2Fnova.png&amp;imgrefurl=https%3A%2F%2Fblog.yarwood.me.uk%2F2021%2F01%2F20%2Fopenstack_nova_bdm%2F&amp;tbnid=E5E2a_OU89IkvM&amp;vet=12ahUKEwiDqt-p2ez8AhWtktgFHUJ9CHwQMygKegUIARDcAQ..i&amp;docid=AIpdCyWVUfso7M&amp;w=600&amp;h=225&amp;q=nova%20in%20openstack&amp;ved=2ahUKEwiDqt-p2ez8AhWtktgFHUJ9CHwQMygKegUIARDcAQ">Image2.</a></figcaption></figure><p>Virtual machines (VMs) are created, started, stopped, and deleted by Nova, which is also in charge of managing the resources allotted to each VM. Additionally, Nova is in charge of overseeing VM networking, including handling IP address allocation and network traffic flow.</p><p><strong>Tools used for using Nova are:</strong></p><ul><li>Horizon: It provides us with a web UI to interact with our project’s components and navigate the dashboard.</li><li>OpenStack client: This is our OpenStack project’s “cli” and includes several commands for our projects.</li><li>Nova Client: It is recommended for some administrative tasks.</li></ul><p><strong>2. Networking (Neutron)</strong></p><p>It is fully managed by OpenStack and provides “Network connectivity as a service” in OpenStack. It manages and configures all of our project’s networking infrastructure and components. It provides the user with static and dynamic IP addresses for their network requirements and project configurations. It can configure advanced networks and plugins, as well as create multi-tier network topologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*RHhXqw-f6nz3h3qu3mmR1A.png" /><figcaption><a href="https://www.google.com/imgres?imgurl=https%3A%2F%2Fleftasexercise.files.wordpress.com%2F2019%2F11%2Fopenstack_project_neutron_vertical.jpg&amp;imgrefurl=https%3A%2F%2Fleftasexercise.com%2F2020%2F02%2F21%2Fopenstack-neutron-architecture-and-overview%2F&amp;tbnid=KpDJMQbEu7Ff1M&amp;vet=12ahUKEwjGmuLL2ez8AhX5KbcAHclgDe4QMygJegUIARDRAQ..i&amp;docid=h5NRyVSBBmeFvM&amp;w=600&amp;h=500&amp;q=neutron%20in%20openstack&amp;ved=2ahUKEwjGmuLL2ez8AhX5KbcAHclgDe4QMygJegUIARDRAQ">Image3.</a></figcaption></figure><p>It also offers various API services and their integration to set up networking components to complete our project and provide a better network setup. For our projects’ connectivity, the nova API and compute resources are linked to the database, networking, and storage components.</p><p><strong>3. Image (Glance)</strong></p><p>It’s an image service that lets us keep track of our virtual machines and containers. The glance serves as a registry for us to share our images. The querying and retrieval of VM image metadata is accomplished using the RESTful API. Glance also has picture discovery, sharing, and replication functionalities that can be utilized to disperse photos across several areas and increase performance. Glance serves as a central repository and allows users to save metadata and image characteristics. The components of the OS image are:</p><ul><li>Glance-api: responsible for receiving the calls for storage, discovery, and retrieval of the image.</li><li>Glance-registry: It includes the metadata of our images and processes it.</li><li>Database: Uses MySQL, SQLite, etc for the deployments. OpenStack has been designed as a single service for those who need to manage and organize a large set of virtual disk images.</li></ul><p><strong>4. Object Storage (swift)</strong></p><p>Petabytes of data are stored using OpenStack object storage. Object storage is both scalable and redundant. A large amount of data can be stored for an extended period of time and is easily retrieved and updated. Object storage is both highly scalable and cost-effective. It is the most widely used and common storage type in OpenStack, and it can be linked to other services to store data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*dZSHNNQh7BVrQnWhUYGOTw.png" /><figcaption><a href="https://www.google.com/imgres?imgurl=https%3A%2F%2Fdocs.openstack.org%2Fsecurity-guide%2F_images%2Fswift_network_diagram-1.png&amp;imgrefurl=https%3A%2F%2Fdocs.openstack.org%2Fsecurity-guide%2Fobject-storage.html&amp;tbnid=p_cluQUKgi0EaM&amp;vet=12ahUKEwi2l8nBi-v8AhU8IbcAHcNiDHkQMygAegUIARC4AQ..i&amp;docid=eJd3WlGrMshtrM&amp;w=494&amp;h=329&amp;q=object%20storage%20in%20openstack&amp;ved=2ahUKEwi2l8nBi-v8AhU8IbcAHcNiDHkQMygAegUIARC4AQ">Image4.</a></figcaption></figure><p>Swift is based on a distributed design and it stores information across numerous capacity nodes, giving an elevated degree of information overt repetitiveness and accessibility. It considers the making of holders and articles, which can be utilized to store information. Swift likewise gives an API that permits other OpenStack administrations to collaborate with articles and supports different capacity strategies, for example, replication and deletion coding(basically it implies information is broken into parts and stored information across numerous capacity areas to ensure backup and failure)</p><p><strong>5. Dashboard (Horizon)</strong></p><p>In OpenStack, provides a web-based user interface for navigating through various services such as Nova, Swift, Cinder, Neutron, and others. It allows us to interact with various services and properly build our projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*KGomdv6pumwMDLkkzpJmZA.png" /><figcaption><a href="https://www.google.com/imgres?imgurl=https%3A%2F%2Fdocs.oracle.com%2Fcd%2FE36784_01%2Fhtml%2FE52463%2Ffigures%2Fimage1.jpg&amp;imgrefurl=https%3A%2F%2Fdocs.oracle.com%2Fcd%2FE36784_01%2Fhtml%2FE52463%2Fgolpl.html&amp;tbnid=_7k33MKfHfIWCM&amp;vet=12ahUKEwjh47bHjuv8AhU3gmMGHW-AA8oQMygCegUIARDcAQ..i&amp;docid=rZwRMIR7T552SM&amp;w=5342&amp;h=3167&amp;q=horizon%20in%20openstack&amp;hl=en&amp;ved=2ahUKEwjh47bHjuv8AhU3gmMGHW-AA8oQMygCegUIARDcAQ">Image5.</a></figcaption></figure><p>It gives us a complete user interface and provides us with an idea of the services being used, the capacity of services used, and all other metrics. We can also have a detailed report of our services used including resources allocated and costs generated</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67c7ce9d989e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To learn and install the VMware workstation to achieve virtualization and create a virtual machine…]]></title>
            <link>https://medium.com/@mohitbishesh7/to-learn-and-install-the-vmware-workstation-to-achieve-virtualization-and-create-a-virtual-470a9bd56842?source=rss-f52abba32bf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/470a9bd56842</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Mohit Bishesh]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 19:33:01 GMT</pubDate>
            <atom:updated>2023-09-10T19:33:01.985Z</atom:updated>
            <content:encoded><![CDATA[<h3>To learn and install the VMware workstation to achieve virtualization and create a virtual machine: Ubuntu.</h3><p>Since its founding in 1998, VMware has created a variety of virtualization-related products. VMware released the VMware Workstation in 2001.</p><p>Several instances of various operating systems, including client and server operating systems, can be installed using VMware Workstation. The client-server environment can be checked, tested, and verified by network or system administrators. The administrator can simultaneously switch between multiple virtual computers.</p><h4>Downloading VMware Workstation:</h4><p><strong>Download link: </strong>https://<a href="http://www.vmware.com/in/products/workstation-player/workstation-">www.vmware.com/in/products/workstation-player/workstation-</a> player-evaluation.html</p><p><strong>Step 1: </strong>Select the software for your operating system to be downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGJV7KT3y4VZ83wf-5mTYg.png" /><figcaption>Image 1.</figcaption></figure><p><strong>Step 2: </strong>Open the setup and click on ‘Next’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*M2ZgBWf97hMp6zZ7_VB82w.png" /><figcaption>Image 2.</figcaption></figure><p><strong>Step 3: </strong>Accept the terms and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*rjTvmZrF8mY833QvQ17mSA.png" /><figcaption>Image 3.</figcaption></figure><p><strong>Step 4: </strong>Select your preferences and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*zs6wuB0C_zguwsQMK0X9Rw.png" /><figcaption>Image 4.</figcaption></figure><p><strong>Step 5: </strong>Select your preferences and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*rQ6Oi9oJZRGSPuwaaWQDig.png" /><figcaption>Image 5.</figcaption></figure><p><strong>Step 6: </strong>Select your preferences and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*FpIXUQKssC8iGm7LrChigg.png" /><figcaption>Image 6.</figcaption></figure><p><strong>Step 7: </strong>Click on ‘Install’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*YyzJRaSzb2dvJ7KE6lYktg.png" /><figcaption>Image 7.</figcaption></figure><p><strong>Step 8: </strong>Click on ‘Finish’: VMware is successfully installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*Ssyp74T7hdX2zvKiAmnwgA.png" /><figcaption>Image 8.</figcaption></figure><p>The workstation has been successfully downloaded and installed in our system.</p><h4>Creating Virtual Machine:</h4><p><strong>Ubuntu OS Download link: </strong><a href="https://ubuntu.com/download/desktop">https://ubuntu.com/download/desktop</a></p><p><strong>STEP 1: </strong>Open VMware Workstation and click on ‘Create a New Virtual Machine’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*ZYEthCzVxJocKdCBbtUWwQ.png" /><figcaption>Image 9</figcaption></figure><p><strong>STEP 2: </strong>Select the Installer disc image and browse to select your downloaded Ubuntu ISO file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*8Z7s4BtqCXHL36smDjeJNA.png" /><figcaption>Image 10.</figcaption></figure><p><strong>STEP 3: </strong>Fill in the details and create a username and password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*CLoVtmWMittk7-Majyg18A.png" /><figcaption>Image 11</figcaption></figure><p><strong>STEP 4: </strong>Select the location you want to assign for your Virtual Machine on your system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*baHgidEoA57JqcHs50zg8g.png" /><figcaption>Image 12</figcaption></figure><p><strong>STEP 5: </strong>Allocate the size you want to allot for your Virtual Machine and select whether the virtual disk is to be stored as a single file or split into multiple files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*xkddIWVx9HUdVvBKS4HGKQ.png" /><figcaption>Image 13</figcaption></figure><p>Machine otherwise click on next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*qd1uzTwpfuXCC8oR9CTufQ.png" /><figcaption>Image 14</figcaption></figure><p><strong>STEP 7: </strong>You can customize your hardware specifications as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Rxw4EgNZuTthMphXAyS6-A.png" /><figcaption>Image 15</figcaption></figure><p><strong>STEP 8:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*gEm_T-dyoWMXLVqewiJusQ.png" /><figcaption>Image 16.</figcaption></figure><p><strong>STEP 9: </strong>After the OS has been installed you will see the homepage like this on your Virtual Machine which shows the successful installation of Ubuntu on your Virtual Machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*PRoZb_pSyII5SNXWx7lJqA.png" /><figcaption>Image 17.</figcaption></figure><h3>Conclusion:</h3><p>We have successfully created our virtual machine of Ubuntu flavor using VMware workstation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=470a9bd56842" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>