forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding manual rule configure_network_bandwidth
- Loading branch information
lichtblaugue
committed
Oct 17, 2024
1 parent
aeb1768
commit 7b4f8b6
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
applications/openshift/networking/configure_network_bandwidth/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
documentation_complete: true | ||
|
||
title: 'Limiting Network Bandwidth in Pods' | ||
|
||
description: |- | ||
Network bandwidth, SHOULD be appropriately reserved and limited. | ||
rationale: |- | ||
Network bandwidth is limited at the pod level and can be determined separately according | ||
to incoming and outgoing network bandwidth. | ||
For more information about limiting Pod bandwidth on OCP 4 please refer to the Red Hat documentation: | ||
{{{ weblink(link="https://access.redhat.com/solutions/5018951") }}} | ||
Out of the documetation use the example for the network bandwidth configuration of a pod: | ||
<pre> | ||
kind: Pod | ||
apiVersion: v1 | ||
metadata: | ||
name: hello-openshift | ||
annotations: | ||
kubernetes.io/ingress-bandwidth: 2M | ||
kubernetes.io/egress-bandwidth: 1M | ||
spec: | ||
containers: | ||
- image: openshift/hello-openshift | ||
name: hello-openshift | ||
</pre> | ||
severity: unknown | ||
|
||
identifiers: | ||
|
||
references: | ||
|
||
ocil_clause: 'Limiting Pod bandwidth on OCP 4' | ||
|
||
ocil: |- | ||
Extend pod configuration with bandwidth annotations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters