मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)35k · #8020

implementing-container-network-policies-with-calico

यह क्या करती है

यह टूल Calico का इस्तेमाल करके आपके containers (virtual boxes में चल रहे programs) के बीच network traffic को control करने में मदद करता है। इसकी मदद से आप security rules बना सकते हैं जो तय करें कि कौन से containers एक-दूसरे से बात कर सकते हैं, server खुद को कैसे सुरक्षित रखे, और internet access को website के नाम से कैसे control करें।

कब इस्तेमाल करें

  • ✓जब आपको एक security rule की ज़रूरत हो जो एक साथ कई 'rooms' (namespaces) पर लागू हो।
  • ✓जब आप उस 'main server' (host) को सुरक्षित करना चाहते हों जहाँ containers चलते हैं।
  • ✓जब आपको internet access सिर्फ़ कुछ खास websites को देना हो (नाम से, जैसे google.com)।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-container-network-policies-with-calico/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“ऐसे rules बनाओ कि सिर्फ़ sales team के containers database तक पहुँच सकें, और बाकी सभी सिर्फ़ news website तक पहुँच सकें।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल special commands (calicoctl) का इस्तेमाल करके network rules बनाता और जाँचता है। ये rules तय करते हैं कि आपके container network के अंदर कौन किससे बात कर सकता है।

तकनीकी सामग्री (मूल 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.

अक्सर पूछे जाने वाले सवाल

'namespaces' क्या होते हैं?

namespaces को अपने server के अंदर अलग-अलग 'rooms' समझिए। ये अलग-अलग applications या teams को व्यवस्थित और एक-दूसरे से अलग रखने में मदद करते हैं।

'calicoctl' क्या है?

यह एक command-line tool है, जिससे आप Calico के network rules manage करते हैं। इसे network security का remote control समझिए।

'default-deny' का क्या मतलब है?

इसका मतलब है कि डिफ़ॉल्ट रूप से कुछ भी allowed नहीं है। ज़रूरी चीज़ों की अनुमति देने के लिए आपको खास rules बनाने होते हैं, जिससे network ज़्यादा सुरक्षित रहता है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills