Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-9999

MCH: Specify storage limits for containers in YAML configuration files to prevent runaway storage usage and ensure fair resource distribution

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Normal Normal
    • Future
    • Future
    • Installer
    • None
    • False
    • None
    • False
    • Hide

      Provide the required acceptance criteria using this template.
      * ...
      Show
      Provide the required acceptance criteria using this template. * ...
    • No

      Value Statement

      By specifying storage limits for containers, we prevent storage resource contention, ensure fair resource distribution, and avoid potential outages due to runaway storage consumption.

      Targeted Files:

      • [ ] config/default/manager_auth_proxy_patch.yaml
      • [ ] config/default/manager_config_patch.yaml
      • [ ] config/default/manager_webhook_patch.yaml
      • [ ] pkg/.../cluster-backup/templates/clusterbackup-deployment.yaml
      • [ ] pkg/.../toggle/console/templates/console-deployment.yaml
      • [ ] pkg/.../toggle/grc/templates/grc-policy-addon-deployment.yaml
      • [ ] pkg/.../toggle/grc/templates/grc-policy-propagator-deployment.yaml
      • [ ] pkg/.../volsync-controller/templates/volsync-addon-controller-deployment.yaml
      • [ ] pkg/.../toggle/insights/templates/insights-client-deployment.yaml
      • [ ] pkg/.../toggle/insights/templates/policyreport-metrics-deployment.yaml
      • [ ] pkg/.../templates/multiclusterhub/base/multicluster-applications-rbac-aggregate-admin.yaml

      Definition of Done for Engineering Story Owner (Checklist)

      • [ ] Storage limits are defined for containers in Kubernetes configuration files.
      • [ ] Storage allocation aligns with application requirements and storage class configurations.
      • [ ] Pods are successfully deployed and tested with storage limits enforced.

      Noncompliant code example

      apiVersion: v1
      kind: Pod
      metadata:
        name: example
      spec:
        containers:
          - name: web # Noncompliant
            image: nginx
            volumeMounts:
              - name: ephemeral
                mountPath: "/tmp"  

      Compliant solution

      apiVersion: v1
      kind: Pod
      metadata:
        name: example
      spec:
        containers: 
          - name: web
            image: nginx
            resources:
              limits:
                ephemeral-storage: "2Gi"
             volumeMounts:
               - name: ephemeral
                 mountPath: "/tmp"

      Development Complete

      • The code is complete.
      • Functionality is working.
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [ ] Unit/function tests have been automated and incorporated into the
        build.
      • [ ] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [ ] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      Support Readiness

      • [ ] The must-gather script has been updated.

            Unassigned Unassigned
            dbennett@redhat.com Disaiah Bennett
            Thuy Nguyen Thuy Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: