SlideShare a Scribd company logo
Network policies in
Kubernetes using Calico
Suraj Narwade
$ whoami
● Works at Red Hat
● Contributes to Kompose, Kedge, Libcompose
● Plays with Kubernetes, OpenShift & Alexa
● Tweets at @red_suraj
● Code at @surajnarwade
● Write at http://suraj.pro
● One of the Event Host here :)
Disclaimer
/me is still newbie with Networking stuff :D
/me is not op guy but golang dev
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Network Policy comes to Rescue
What is Network Policy ?
A network policy is a specification of how groups of pods are allowed to
communicate with each other and other network endpoints.
(By default, if no policies exist in a namespace, then all ingress and egress traffic is allowed to and from pods in that
namespace.)
Network Policies
● These policies are firewall rules that specify permissible types of traffic to, from and between pods. If requested,
Kubernetes blocks all traffic that is not explicitly allowed.
● Policies are applied to groups of pods identified by common labels.
Who Provides Network Policies ?
● Calico
● Cilium
● Kube-router
● Romana
● Weave Net
Someone will ask, why not flannel ?
https://github.com/projectcalico/canal
https://thenewstack.io/project-calico-flannel-join-forces-policy-secured-networking/
Quick introduction to calico
● OpenSource
● Enables Networking of Workloads in Cloud Environment
● User need not to be networking expert
● Scale Thousand of workloads
● L3 level
● Containers, VMs, bare metal
Installation
kubectl apply -f
https://docs.projectcalico.org/v3.0/getting-started/kubernet
es/installation/hosted/calico.yaml
It will install...
● A ConfigMap which contains the Calico configuration.
● A DaemonSet which installs the calico/node pod and CNI plugin.
● A ReplicaSet which installs the calico/kube-policy-controller pod.
In kube-system namespace
Default deny
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny
spec:
podSelector: {}
policyTypes:
- Ingress
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: access-nginx
spec:
podSelector:
matchLabels:
app: nginx
ingress:
- from:
- podSelector:
matchLabels:
app: foo
You can use
● PodSelector
● NameSpaceSelector
● IP ranges with CIDR
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Network policies in Kubernetes using Calico
Thank You !!!

More Related Content

PDF
Laravel Core Concept & Ecosystem
PPTX
2014 09-23 Mechanism of Gossip protocol
PDF
Ratpack 101 - GeeCON 2015
PDF
Blockchain for scala lovers
PDF
B-Sides Asheville 2014: Wifi...WTF?!?!
PDF
Cpu profiling
PDF
Go at Skroutz
PDF
GDG Algiers DevFest 2013 Cool AndroidLibs
Laravel Core Concept & Ecosystem
2014 09-23 Mechanism of Gossip protocol
Ratpack 101 - GeeCON 2015
Blockchain for scala lovers
B-Sides Asheville 2014: Wifi...WTF?!?!
Cpu profiling
Go at Skroutz
GDG Algiers DevFest 2013 Cool AndroidLibs

Similar to Network policies in Kubernetes using Calico (20)

PDF
Hyperledger fabric 3
PDF
Locking down your Kubernetes cluster with Linkerd
PDF
GitLab Commit: Enhance your Compliance with Policy-Based CI/CD
PDF
K8s network policy bypass
PDF
Drools5 Community Training module 4 RETE Algorithm Introduction
PDF
Distributed fun with etcd
PDF
GitOps Core Concepts & Ways of Structuring Your Repos
PPTX
Network Intent Composition in OpenDaylight
PDF
ETC Summit 18
PDF
Hands-on GitOps Patterns for Helm Users
PDF
fwd:cloudsec 2022: Shifting right with policy-as-code
PDF
Cloud Native Bern 05.2023 — Zero Trust Visibility
PPTX
Decentralized App Blockchain
PPTX
What is Blockchain
PPTX
What is Blockchain?
PDF
How OpenShift SDN helps to automate
PDF
Deploy 22 microservices from scratch in 30 mins with GitOps
PDF
Enforcing Bespoke Policies in Kubernetes
PDF
NATS Connector Framework - Boulder Meetup
PDF
"The working architecture of NodeJs applications" Viktor Turskyi
Hyperledger fabric 3
Locking down your Kubernetes cluster with Linkerd
GitLab Commit: Enhance your Compliance with Policy-Based CI/CD
K8s network policy bypass
Drools5 Community Training module 4 RETE Algorithm Introduction
Distributed fun with etcd
GitOps Core Concepts & Ways of Structuring Your Repos
Network Intent Composition in OpenDaylight
ETC Summit 18
Hands-on GitOps Patterns for Helm Users
fwd:cloudsec 2022: Shifting right with policy-as-code
Cloud Native Bern 05.2023 — Zero Trust Visibility
Decentralized App Blockchain
What is Blockchain
What is Blockchain?
How OpenShift SDN helps to automate
Deploy 22 microservices from scratch in 30 mins with GitOps
Enforcing Bespoke Policies in Kubernetes
NATS Connector Framework - Boulder Meetup
"The working architecture of NodeJs applications" Viktor Turskyi
Ad

Recently uploaded (20)

PPTX
history of c programming in notes for students .pptx
PPTX
assetexplorer- product-overview - presentation
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PDF
Nekopoi APK 2025 free lastest update
PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Website Design Services for Small Businesses.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
history of c programming in notes for students .pptx
assetexplorer- product-overview - presentation
Design an Analysis of Algorithms II-SECS-1021-03
Operating system designcfffgfgggggggvggggggggg
Why Generative AI is the Future of Content, Code & Creativity?
Reimagine Home Health with the Power of Agentic AI​
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Nekopoi APK 2025 free lastest update
iTop VPN Crack Latest Version Full Key 2025
Digital Systems & Binary Numbers (comprehensive )
Advanced SystemCare Ultimate Crack + Portable (2025)
Computer Software and OS of computer science of grade 11.pptx
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
Odoo Companies in India – Driving Business Transformation.pdf
Oracle Fusion HCM Cloud Demo for Beginners
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Wondershare Filmora 15 Crack With Activation Key [2025
Website Design Services for Small Businesses.pdf
Design an Analysis of Algorithms I-SECS-1021-03
Ad

Network policies in Kubernetes using Calico