Welcome to the Linux Foundation Forum!

Change the type of the service such that it is only accessible from within the cluster in ex. 7.3


Hi, Can you please help me to understand if this can be solved with implementing Network policy? If so then what ip address i will add in the ingress rule?

Thanks in advance,

Best Answer

  • chrispokorni
    chrispokorni Posts: 2,190
    Answer ✓

    Hi @krisdasm,

    A Network Policy is equivalent to a firewall. It is not intended to change the type of a Service.

    I would recommend revisiting a few sections of Chapter 7, specifically the "ClusterIP", "NodePort", and "LoadBalancer" to better understand these specific Service types, their similarities and differences. This will help you to find the expected solution to exercise 7.3.



Upcoming Training