Installing network policies for Usage Metering Service

If you have a deny-all or allow-same-namespace policy in place, import and install network policies for Usage Metering Service.

Import and install network policies for Usage Metering Service to work in the following scenarios:
  • If you have the deny-all policy in place, the ingress traffic to all pods is not allowed.
  • If the cluster has allow-same-namespace policy in place, the communication between the pods across namespaces can be blocked.

If you do not use deny-all or allow-same-namespace policy, you do not need to import or install network policies.

Procedure

  1. Go to the GitHub repository with Usage Metering Service Ingress.
  2. Download the access-to-usage-metering-service.yaml file.
  3. In the access-to-usage-metering-service.yaml file that you downloaded, set the namespace under the metadata section to the namespace where Usage Metering Service is installed.
  4. Apply the file on your cluster by running the following command:
    kubectl apply -f access-to-usage-metering-service.yaml