karthi Mahadev:
Can someone help me in clearing this question:
Hard part
Easy part: Create a redis deployment using the image redis:alpine with 1 replica and label app=redis. Expose it via a ClusterIP service called redis on port 6379.
Hard Part:
Create a new Ingress Type NetworkPolicy called redis-access which allows only the pods with label access=redis to access the deployment.