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-allpolicy in place, the ingress traffic to all pods is not allowed. - If the cluster has
allow-same-namespacepolicy 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
- Go to the GitHub repository with Usage Metering Service Ingress.
- Download the
access-to-usage-metering-service.yamlfile. - In the
access-to-usage-metering-service.yamlfile that you downloaded, set thenamespaceunder themetadatasection to the namespace where Usage Metering Service is installed. - Apply the file on your cluster by running the following
command:
kubectl apply -f access-to-usage-metering-service.yaml