Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Use Network Policies and a Firewall

Sumit Rawal answered on May 13, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers


Use Network Policies and a Firewall

0

Network policies should be implementedto restrict traffic between objects(pods, services etc) in the K8s cluster. By default, all containers can talk to each other in the network, something that presents a security risk if hackers gain access to a container, allowing them to traverse objects in the cluster. Network policies can control traffic at the IP and port level, similar to the concept of security groups in cloud platforms to restrict access to resources. Typically, all traffic should be denied by default, then allow rules should be put in place to allow required traffic.

Example :- Consider an application ola having 3 different components as follows:

ola-ui (frontend)

ola-api (backend)

ola-db (db)

Expected communication between these components are like ui communicates to api and api communicates to db.

But when all these components of ola application are running in a kubernetes cluster, technically ui component can communicate to db by default.

We have to configure network policies that allows only the valid communications between the pods

As well as using network policies to restrict internal traffic on your K8s cluster, you should also put a firewall in front of your K8s cluster in order to restrict requests to the API server from the outside world. IP addresses should be whitelisted and open ports restricted. 

Popularity 3/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 13 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.