Anushka hasini:
Hi, When we create network policy… what type of scenario should we specify egress type
Alistair Mackay:
Egress controls what outgoing connections can be initiated by the pods to which the policy is applied.
One would use egress policies to e.g. stop a pod from having internet access. Thus if a bad actor was somehow able to install malware in the pod, that malware would not be able to connect to its command and control server.
A microservice pod might have an egress policy that only allows it to reach its database, and nowhere else.
Anushka hasini:
OK thanks