본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)35k · #8020

implementing-container-network-policies-with-calico

하는 일

이 도구는 Calico를 사용해 컨테이너(가상 상자 안에서 실행되는 프로그램) 사이의 네트워크 트래픽을 제어하도록 돕습니다. 어떤 컨테이너끼리 통신할 수 있는지 결정하는 보안 규칙을 만들고, 컨테이너가 실행되는 ‘메인 서버(호스트)’를 보호하며, 웹사이트 이름으로 인터넷 접근을 제어할 수 있습니다.

사용하는 경우

  • ✓여러 ‘방’(네임스페이스)에 한꺼번에 영향을 주는 보안 규칙이 필요할 때.
  • ✓컨테이너가 실행되는 ‘메인 서버(호스트)’를 보호하고 싶을 때.
  • ✓특정 웹사이트(예: google.com처럼 이름으로)에만 인터넷 접근을 허용해야 하는 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-container-network-policies-with-calico/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-container-network-policies-with-calico/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“영업팀 컨테이너만 데이터베이스에 접근하고, 나머지는 모두 뉴스 웹사이트에만 접근하도록 규칙을 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 네트워크 규칙을 만들고 확인하는 특별한 명령(calicoctl)을 사용합니다. 이 규칙은 컨테이너 네트워크 안에서 누가 누구와 통신할 수 있는지 정의합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Implementing Container Network Policies with Calico

Overview

Calico provides Kubernetes-native and extended network policy enforcement through its CNI plugin. This skill covers creating and auditing Calico NetworkPolicy and GlobalNetworkPolicy resources to implement pod-to-pod traffic control, namespace isolation, egress restrictions, and DNS-based policy rules using calicoctl and the Kubernetes API.

When to Use

  • When deploying or configuring implementing container network policies with calico capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Kubernetes cluster with Calico CNI installed
  • Python 3.9+ with kubernetes client library
  • calicoctl CLI tool installed and configured
  • kubectl access with RBAC permissions for network policy management

Steps

Step 1: Audit Existing Network Policies

Use calicoctl and kubectl to inventory current network policies and identify unprotected namespaces.

Step 2: Implement Default-Deny Policies

Create default-deny ingress and egress policies per namespace as a zero-trust baseline.

Step 3: Create Workload-Specific Allow Rules

Define granular allow rules for legitimate pod-to-pod and pod-to-service communication.

Step 4: Validate Policy Enforcement

Test connectivity between pods to verify policies are correctly enforced.

Expected Output

JSON audit report listing all network policies, unprotected namespaces, policy rule counts, and connectivity test results.

자주 묻는 질문

‘네임스페이스’란 무엇인가요?

서버 안의 독립된 ‘방’과 같습니다. 서로 다른 애플리케이션이나 팀을 정리하고 분리하는 데 도움을 줍니다.

‘calicoctl’이란 무엇인가요?

Calico의 네트워크 규칙을 관리하는 명령줄 도구이며, 네트워크 보안을 위한 원격 조종기와 같습니다.

‘default-deny’는 무엇을 의미하나요?

기본적으로 아무것도 허용하지 않는다는 뜻입니다. 필요한 것만 허용하도록 구체적인 규칙을 만들어야 하므로 네트워크가 더 안전해집니다.

상세 정보

작성자의 원본 설명

Uses Calico's own policy CRDs beyond the upstream Kubernetes API - GlobalNetworkPolicy, HostEndpoint, NetworkSet, policy tiers, and DNS-based egress rules - applied and audited with calicoctl. Use when a policy must span namespaces or protect the host itself, when egress has to be expressed by domain name, or when ordering policies into tiers. Keywords: calicoctl, GlobalNetworkPolicy, HostEndpoint

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#8020
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬