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,
Krishanuu

Best Answer

  • Posts: 2,451
    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.

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training