<?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 augustkang on Medium]]></title>
        <description><![CDATA[Stories by augustkang on Medium]]></description>
        <link>https://medium.com/@augustkang?source=rss-621ce2a18514------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*erqIMJsWBlVzJtlm</url>
            <title>Stories by augustkang on Medium</title>
            <link>https://medium.com/@augustkang?source=rss-621ce2a18514------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:54:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@augustkang/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[eks-node-viewer]]></title>
            <link>https://medium.com/@augustkang/eks-node-viewer-d7c269f78cd4?source=rss-621ce2a18514------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7c269f78cd4</guid>
            <dc:creator><![CDATA[augustkang]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 23:59:31 GMT</pubDate>
            <atom:updated>2024-03-17T00:10:06.145Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is eks-node-viewer?</h3><p>eks-node-viewer는 Kubernetes 노드의 사용량을 동적으로 볼 수 있게 해주는 CLI tool 입니다. GitHub README 설명에 의하면 원래는 AWS 내부에서 karpenter 시연에 사용할 목적으로 개발, 사용하였다고 하는데요. 현재는 오픈소스로 공개되어 있습니다.</p><p><a href="https://github.com/awslabs/eks-node-viewer">GitHub - awslabs/eks-node-viewer: EKS Node Viewer</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Y6hKUqI3bwzFYlZwSQ2Kw.png" /><figcaption><a href="https://github.com/awslabs/eks-node-viewer/blob/main/.static/screenshot.png">https://github.com/awslabs/eks-node-viewer/blob/main/.static/screenshot.png</a></figcaption></figure><h3>How to install eks-node-viewer?</h3><p>brew로 설치할 수 있습니다.</p><pre>brew tap aws/tap<br>brew install eks-node-viewer</pre><h3>Usage</h3><h4>Prerequisites</h4><p>Kubernetes context가 설정되어 있어야 합니다.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrE6izg_a9eA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrE6izg_a9eA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrE6izg_a9eA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/35f722e24b46138d573625132f988a96/href">https://medium.com/media/35f722e24b46138d573625132f988a96/href</a></iframe><ul><li>karpenter node들만 보고 싶은 경우<br>eks-node-viewer --node-selector karpenter.sh/nodepool</li><li>CPU, Memory 사용률을 함께 보고 싶은 경우<br>eks-node-viewer — resources cpu,memory</li></ul><p>클러스터의 노드들에 생기는 변화를 실시간으로 보여주는 점이 이 도구의 장점이라고 생각하는데요! <a href="https://karpenter.sh/">karpenter</a>를 이용해 deployment의 replica 수를 늘리고 node가 새로 provisioning 되는 것, 그리고 pending 되어 있던 pod이 schedule 되는 것을 보기 위해 watch 를 이용하곤 했는데, eks-node-viewer 를 이용하여 더욱 쉽게 확인할 수 있습니다.</p><p>그 외 아래와 같은 정보를 함께 보여줍니다.</p><ul><li>영상 예시에서 보는 것처럼 개별 node 의 pricing, 그리고 전체 cluster의 pricing을 간략하게 살펴 볼 수 있습니다.</li><li>Node의 리소스 사용률을 알아보기 쉽게 보여주고, 전체 pod에 대해 status를 보여줍니다.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7c269f78cd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EKS Cluster Access Management — using Access Entry]]></title>
            <link>https://medium.com/@augustkang/eks-cluster-access-management-using-access-entry-c8ca48798250?source=rss-621ce2a18514------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8ca48798250</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ek]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[augustkang]]></dc:creator>
            <pubDate>Sat, 09 Mar 2024 16:24:36 GMT</pubDate>
            <atom:updated>2024-03-09T16:27:09.144Z</atom:updated>
            <content:encoded><![CDATA[<h3>EKS Cluster Access Management — using Access Entry</h3><h3>What is EKS Access entry?</h3><p>EKS Cluster access management를 위해 AWS에서 새로 낸 feature 입니다. Access entry와 Access policy라는 <strong>‘AWS’ 리소스</strong>를 이용해 EKS Cluster에 대한 access를 관리할 수 있습니다.</p><p>Cluster 접근 권한을 부여하고자 하는 대상 IAM Identity(IAM User, IAM Role)에 대해 Access Entry라는 리소스를 생성하고, 해당 Access Entry에 접근 권한이 담긴 Access Policy(사전에 정의되어 있음)를 엮어주는 식으로 동작합니다.</p><p>해당 feature가 나오기 이전에는 ‘kubernetes 내부 리소스’인 aws-auth configmap을 이용해 EKS cluster에 대해 접근을 제어(IAM Identity와 kubernetes group의 mapping)해야 했습니다.</p><p>Access entry를 이용하면 kubernetes 내부 리소스인 aws-auth 를 이용해 클러스터 접근 권한을 관리할 때 느껴지는 불편함에서 자유로워질 수 있습니다. (ex. configmap yaml 수정의 피로감, EKS cluster 만든 identity는 configmap에 안보임, 문제 생겼을 때 케이스 올려서 구조받아야 함 등)</p><h3>구조</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihcrMMEOfUUFXWeZ6i_YiA.png" /><figcaption><a href="https://securitylabs.datadoghq.com/articles/eks-cluster-access-management-deep-dive/">https://securitylabs.datadoghq.com/articles/eks-cluster-access-management-deep-dive/</a></figcaption></figure><h4>Access Entry</h4><p><a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_AccessEntry.html">AccessEntry object</a> 참고하여 주요 속성 정리 (만들땐 <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_CreateAccessEntry.html">CreateAccessEntry</a> 호출)</p><p><strong>clusterName</strong> : 대상 EKS Cluster의 이름</p><p><strong>principalArn</strong> : EKS Cluster 접근을 허용해 줄 IAM Identity의 ARN(IAM User, IAM Role)</p><p><strong>kubernetesGroups</strong> : IAM Identity와 엮어줄 kubernetes group 이름. <a href="https://docs.aws.amazon.com/eks/latest/userguide/access-policies.html">이걸 명시해주게 되면 후술할 Access Policy 권한 + 여기에 명시한 kubernetes group에 binding 시켜준 cluster role의 권한을 ‘합집합’ 형태로 갖게됩니다</a>.(Kubernetes RBAC으로 fine grained control 하고 싶을 경우)</p><p><strong>type</strong> : Access Entry의 타입. Self-managed node group을 사용하는 경우 EC2_LINUX, EC2_WINDOWS로 설정해줘야 하고, Managed node group일 경우 STANDARD로 설정.(Default는 STANDARD)</p><p><strong>Terraform resource block</strong></p><pre>resource &quot;aws_eks_access_entry&quot; &quot;example&quot; {<br>  cluster_name      = aws_eks_cluster.example.name<br>  principal_arn     = aws_iam_role.example.arn<br>  kubernetes_groups = [&quot;group-1&quot;, &quot;group-2&quot;]<br>  type              = &quot;STANDARD&quot;<br>}</pre><h4>Access Policy</h4><p><strong>clusterName</strong> : 대상 EKS Cluster의 이름</p><p><strong>principalArn</strong> : Access policy 부여해 줄 대상 IAM Identity의 ARN</p><p><strong>accessScope</strong> : Access policy가 적용될 범위를 조정하게 해주는 속성(ex. 특정 namespace 단위 제어)</p><p><strong>policyArn</strong> : principalArn 에 명시한 IAM Identity에게 부여해 줄 Access policy의 ARN. AWS에서 정의해 둔 policy들이 있다. (AWS가 정의한 공통 policy라 ARN에 Account ID가 안들어갑니다.)</p><ul><li><strong>AmazonEKSClusterAdminPolicy</strong> : cluster admin 권한 (aws-auth에서 system:masters 그룹 맵핑해주는것과 준하는 것으로 보임)</li><li><strong>AmazonEKSAdminPolicy</strong> : Namespace admin에 준하는 권한</li><li><strong>AmazonEKSEditPolicy :</strong> 일부 리소스 read/write</li><li><strong>AmazonEKSViewPolicy :</strong> View only</li><li>권한 상세 : <a href="https://docs.aws.amazon.com/eks/latest/userguide/access-policies.html#access-policy-permissions">https://docs.aws.amazon.com/eks/latest/userguide/access-policies.html#access-policy-permissions</a></li></ul><p><strong>Terraform resource block</strong></p><pre>resource &quot;aws_eks_access_policy_association&quot; &quot;example&quot; {<br>  cluster_name  = aws_eks_cluster.example.name<br>  policy_arn    = &quot;arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy&quot;<br>  principal_arn = aws_iam_user.example.arn<br><br>  access_scope {<br>    type       = &quot;namespace&quot;<br>    namespaces = [&quot;example-namespace&quot;]<br>  }<br>}</pre><h3>EKS Cluster authentication_mode 설정 (Terraform)</h3><pre>resource &quot;aws_eks_cluster&quot; &quot;example&quot; {<br>  name     = &quot;example-cluster&quot;<br>  role_arn = aws_iam_role.example.arn<br><br>  vpc_config {<br>    endpoint_private_access = true<br>    endpoint_public_access  = false<br>    # ... other configuration ...<br>  }<br><br>  access_config {<br>    authentication_mode                         = &quot;CONFIG_MAP&quot;<br>    bootstrap_cluster_creator_admin_permissions = true<br>  }<br>}</pre><p>access_config block의 authentication_mode 에서 어떤 방식으로 cluster 접근을 제어할지 선택할 수 있다.</p><ul><li>CONFIG_MAP : 기존의 aws-auth configmap 기반으로 EKS Cluster access를 제어하는 방식</li><li>API_AND_CONFIG_MAP : EKS Access entry 방식과 aws-auth configmap 방식을 둘 다 쓰는 방식</li><li>API : Access Entry 만 사용하는 방식</li></ul><h4>참고</h4><p>기존에 CONFIG_MAP방식으로 authentication mode 를 설정했을 경우 API_AND_CONFIG_MAP 또는 API 방식으로 변경하는 것이 가능하다. 마찬가지로 API_AND_CONFIG_MAP 방식에서 API 방식으로 변경하는 것도 가능하다.</p><p>하지만 API 방식에서 API_AND_CONFIG_MAP 방식 또는 CONFIG_MAP 방식으로 변경하거나, API_AND_CONFIG_MAP 에서 CONFIG_MAP 방식으로 변경할 수는 없다.</p><h4>References</h4><ul><li><a href="https://docs.aws.amazon.com/eks/latest/userguide/access-entries.html">Allowing IAM roles or users access to Kubernetes objects on your Amazon EKS cluster</a></li><li><a href="https://docs.aws.amazon.com/eks/latest/userguide/access-policies.html">Associating and disassociating access policies to and from access entries</a></li><li><a href="https://securitylabs.datadoghq.com/articles/eks-cluster-access-management-deep-dive/">Deep dive into the new Amazon EKS Cluster Access Management features | Datadog Security Labs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8ca48798250" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>